in reply to Change double quote to single quotes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Change double quote to single quotes
by rookie_monk (Novice) on Sep 02, 2010 at 18:18 UTC | |
by dasgar (Priest) on Sep 02, 2010 at 19:42 UTC |