Reformatting your code shows a number of things:
foreach $_ (@array) { @array2 = grep {$_ =~ "unknown type(0x134e) 30.6511 (V6.5.1 FP1)"} ( +@array); print FILE "@array2"; close(FILE);
In reply to Re: Using grep to pick out Specific lines in a text file
by hdb
in thread Using grep to pick out Specific lines in a text file
by itguy87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |