The stupid question is the question not asked | |
PerlMonks |
Re^2: using basename on a list of filesnamesby 1nickt (Canon) |
on Nov 13, 2019 at 05:03 UTC ( [id://11108612]=note: print w/replies, xml ) | Need Help?? |
How is it correct usage to pass a list of filenames?! Only the first is handled as a filename; the rest are possible suffix matches. From the doc: $basename = basename($fullname,@suffixlist);
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|