Do you know where your variables are? | |
PerlMonks |
Re: apply a regular expression to glob'd filenamesby 1nickt (Canon) |
on Oct 01, 2019 at 20:58 UTC ( [id://11106927]=note: print w/replies, xml ) | Need Help?? |
Hi, this is not a job for a regexp. Use the core module File::Basename to handle stripping extensions, or even better use Path::Tiny or Path::Iterator::Rule to find the files and get your desired output. Here's one way:
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|