Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: Regex to extract last 3 components of filenameby haukex (Archbishop) |
on May 05, 2021 at 17:00 UTC ( [id://11132080]=note: print w/replies, xml ) | Need Help?? |
Lift it out and adapt it to your own code. File::Spec is a core module. "Copy and paste some code out of a CPAN module" is a last resort at best. Also be aware of the many goodies in Regexp::Common. Regexp::Common does not handle filename manipulations.
In Section
Seekers of Perl Wisdom
|
|