my($text2) = "test_\1_\2_\3";
In the line above, the backslashes are being interpolated since they are in double quotes. To avoid the interpolation, modify it like:
my($text2) = 'test_\1_\2_\3'; # Single-quotes don't interpolateor
my($text2) = "test_\\1_\\2_\\3"; # Escaping the backslashesAs for the beginning portion, you might want to use Data::Dumper to verify that $GenEnt is really holding what you think it is. That would be my first step in debugging the problem.
In reply to Re: Change double quote to single quotes
by dasgar
in thread Change double quote to single quotes
by rookie_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |