Now you read the whole file into $a (which can be done more efficiently) but what you want is something like
while (<$in>) { # assigns each line in turn to $_ #print "Just read in this line: $_"; if( /eroare/ ) { # checks $_ print; } }
In reply to Re^3: log parser
by hdb
in thread log parser
by alex_fatu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |