in reply to
using s/// to remove file extensions
How about using split instead?
($fName, $extension) = split (/\./, $FullFileName);
print scalar $fName;
/- M a r c -/
Of course I'm assuming all files don't have extra periods in them. A module may be best, unless you know what kind of files to expect consistantly.
Electric dreams (yikes!)
2001: A Space Odyssey
None of the above, please specify
Results (143 votes),