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