in reply to unitialized value error in pattern matching script
with the closing / on the regex?while ($_myfile[$i] !~ /filename="(.*)\.(.*)"/) { $args1=$1; $args2=$2; print $args2; $i++; }
The problem is that !~ means DON'T match. What you want is probably
Hope this helps!while ($_myfile[$i] =~ /filename="(.*)\.(.*)"/) { $args1=$1; $args2=$2; print $args2; $i++; }
|
|---|