$1 is undefined because you don't have capturing parentheses in the regex.
if ($filelist =~ /(FRAUD-REPORT\d+\.CSV)/i) { $newfile = $1; push(@curr, $newfile); }
After Compline,
Zaxo
In reply to Re: reg expression
by Zaxo
in thread reg expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |