|
|
| Don't ask to ask, just ask | |
| PerlMonks |
regex/substitution questionby slugger415 (Beadle) |
| on Feb 07, 2012 at 18:32 UTC ( #952321=perlquestion: print w/ replies, xml ) | Need Help?? |
|
slugger415 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks, this might be a dumb question, but I'm still learning. I'm doing a series of string substitutions in a file. I have a hash, something like this:
I'm sure you can see the problem here. If the string is "Xaa11" it might first substitute "Xaa1" and never see the final "1", so the result ends up being "sub11" instead of "sub2". Am I going about this the right way, and how to I make sure it checks to the end of "Xaa11"? Thank you!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||