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.
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (263 votes). Check out past polls.