however it only appears to match the first value in the array and nothing else, when it should. I have checked the array to make sure values are storedwhile (<IN>) { chomp; /^\s+(\S+)/; push @array, $1; } close (IN); foreach $line (@array) { chomp; print "$line\n"; foreach $line2 (<IN2>) { $line2 =~/^\s+\S+\s+\S+\s+(\S+)/; if ($line == $1) {remove line}; } }
In reply to remove a line by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |