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);
$ perl -MFile::Basename -wE 'say basename("foo.psd","bar.psd",".psd")' foo
In reply to Re^2: using basename on a list of filesnames
by 1nickt
in thread using basename on a list of filesnames
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |