You could find File::Spec useful for this filename stuff, anyway.$approvedpdfs =~ s/\.pdf$//;
Update: you should also take a look at perldoc perlretut, regexes aren't shell expansion rules :)
Flavio
Don't fool yourself.In reply to Re: using s/// to remove file extensions
by polettix
in thread using s/// to remove file extensions
by Plotinus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |