Don't ask to ask, just ask | |
PerlMonks |
Re^3: Uer Perl Variable in fileby tinita (Parson) |
on Aug 06, 2012 at 14:24 UTC ( [id://985737]=note: print w/replies, xml ) | Need Help?? |
Additionally: when doing things like this and you have two hash keys "foo" and "foobar", either use \b in the regex if possible, or sort the hash keys for length before joining. otherwise $foobar could be replaced with the value of $replace{foo}. s/\$($search_for)\b/$replace{$1}/g;
In Section
Seekers of Perl Wisdom
|
|