in reply to reg expression

$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

Replies are listed 'Best First'.
Re^2: reg expression
by Anonymous Monk on Jun 14, 2006 at 16:02 UTC
    Awesome thanks man!!! :)