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.
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (63 votes). Check out past polls.