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++; }
In reply to Re: pattern matching
by RMGir
in thread unitialized value error in pattern matching script
by jrasillo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |