Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Recursive search and deleteby tobyink (Canon) |
on Nov 16, 2012 at 09:36 UTC ( [id://1004161]=note: print w/replies, xml ) | Need Help?? |
The error is as NetWallah says, that you are checking to see if the filename equals "abc*.xml*" - not if the filename matches that pattern. Personally I'd use Path::Class::Rule...
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|