in reply to Re: using basename on a list of filesnames
in thread using basename on a list of filesnames
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using basename on a list of filesnames
by jcb (Parson) on Nov 14, 2019 at 00:35 UTC |