$g just counts how many times it came up valid. my problem is it's counting names that have nothing to do with the request but not all of the names.$j=0; $g=0; foreach $line(@vname){ chomp($line); if($vname[$j] =~ /i|"$request"/){ print qq~ <tr> <td><a href=\"mailto:$email[$j] \">$vname[$j] </a></td> </tr> ~; $g++; } $j++; }
Edit: 2001-03-03 by neshura
In reply to the god awful =~ by £okì
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |