in reply to Re: Regex To Remove File Extension
in thread Regex To Remove File Extension
File::Basename says
$basename = basename($fullname,@suffixlist);If @suffixes are given each element is a pattern (either a string or a qr//) matched against the end of the $filename. The matching portion is removed and becomes the $suffix.
So File::Basename doesn't solve the original problem, it requires the solution before it can be used.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Regex To Remove File Extension
by Nkuvu (Priest) on Dec 15, 2008 at 16:23 UTC |
In Section
Seekers of Perl Wisdom