|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: help with a regexby toolic (Chancellor) |
| on Feb 01, 2013 at 18:16 UTC ( #1016596=note: print w/ replies, xml ) | Need Help?? |
|
You are printing the return value of s///, which is the number of substitutions made. If there was only 1 substitution, it prints 1, which just happens to match the hash value. You should print $_ instead:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||