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
So the rhs of the first and second could be ${1}0_0$2 and ${1}_0_0_$2 respectively.my $foo="Groove"; print "$food"; # Error $food is not a declared indentifier. print "${foo}d"; # same as $foo."d";
--- demerphq
my friends call me, usually because I'm late....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: search, replace and backrefrences
by rir (Vicar) on Sep 30, 2002 at 16:52 UTC | |
by diotalevi (Canon) on Sep 30, 2002 at 16:56 UTC | |
by rir (Vicar) on Sep 30, 2002 at 17:03 UTC | |
by demerphq (Chancellor) on Sep 30, 2002 at 19:27 UTC | |
by rir (Vicar) on Sep 30, 2002 at 20:23 UTC | |
by demerphq (Chancellor) on Sep 30, 2002 at 20:32 UTC | |
by Shendal (Hermit) on Sep 30, 2002 at 20:28 UTC |
In Section
Seekers of Perl Wisdom