There's more than one way to do things | |
PerlMonks |
Re: Perl file renameby afoken (Chancellor) |
on Jun 04, 2015 at 08:05 UTC ( [id://1129029]=note: print w/replies, xml ) | Need Help?? |
I think you have another problem here: The right-hand side of s/// (REPLACEMENT in s/PATTERN/REPLACEMENT/) is not a regular expression, but a string. See Regexp Quote Like Operators. Your use of qr// makes a regular expression from the second argument, then stringifies it. That will very likely give you an unexpected result:
Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|