How about using split instead?
($fName, $extension) = split (/\./, $FullFileName); print scalar $fName;
In reply to Re: using s/// to remove file extensions
by FitTrend
in thread using s/// to remove file extensions
by Plotinus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |