There's more than one way to do things | |
PerlMonks |
Re^5: Regex to get file name from the path with spacesby choroba (Cardinal) |
on Sep 08, 2021 at 09:53 UTC ( [id://11136566]=note: print w/replies, xml ) | Need Help?? |
You're missing the negation ^ in the character class. Also, you're using forward slashes in the regex, but backslashes in the string. Moreover, I'm not sure the ? is needed.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|