![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^3: How to Rename files in multiple directories with a Perl script using an array of hashes.by choroba (Cardinal) |
on Jun 11, 2023 at 21:41 UTC ( [id://11152793]=note: print w/replies, xml ) | Need Help?? |
Using single quotes might solve some problems with spaces: but if the path contained a single quote, it would break again. As written in the documentation of glob, use bsd_glob from File::Glob if you don't want whitespace to be considered a separator.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|