http://www.perlmonks.org?node_id=201742


in reply to search, replace and backrefrences

Well, im not real sure that $1_0_0_ isnt being treated as such.

But a useful trick in this situation and others is to use the form ${varname} to delimit the the identifier. Ie

my $foo="Groove"; print "$food"; # Error $food is not a declared indentifier. print "${foo}d"; # same as $foo."d";
So the rhs of the first and second could be ${1}0_0$2 and ${1}_0_0_$2 respectively.

--- demerphq
my friends call me, usually because I'm late....