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 eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (406 votes). Check out past polls.