|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: weird regex questionby JavaFan (Canon) |
| on Apr 25, 2012 at 16:25 UTC ( #967111=note: print w/ replies, xml ) | Need Help?? |
|
If you use !$!, only $! get interpolated, not the entire expression. In your case, $!, in string context, will be the empty string. So, you end up with which is not going to match. If you want to interpolate the expression, use:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||