- or download this
when is experimental at <script_name> line 10.
when is experimental at <script_name> line 11.
- or download this
while(my $line = <$fd>){
for($line){
...
$count++ when /failed/; # count matching lines
}
}
- or download this
while (<$fd>) {
print if /Total/; # print matching lines
$count++ if /failed/; # count matching lines
}