We don't bite newbies here... much | |
PerlMonks |
Re: Regular expressions and sortby japhy (Canon) |
on Nov 04, 2005 at 14:48 UTC ( [id://505718]=note: print w/replies, xml ) | Need Help?? |
No one seems to have mentioned that my $mask=/_(\d\d)_/; is Not the Code You Are Looking For. To put a regex in $mask, use qr// like so: my $mask = qr/_(\d\d)_/;
In Section
Seekers of Perl Wisdom
|
|