Or maybe you already have a regex to determine if you have a valid ascii filename:$logfile = $file; $logfile =~ s/\.asc$/.log/;
if ($file =~ m{(.*)\.asc}) { $logfile = "$1.log"; }
YuckFoo
In reply to Re: Removing File Extensions
by YuckFoo
in thread Removing File Extensions
by cybermack72
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |