Help for this page

Select Code to Download


  1. or download this
    while (my $line = <INFILE>) {
        print $line;
        print "FOUND IT!\n" if $line =~ /foo/;
    }
    
  2. or download this
    while (<INFILE>) {
        print;
        print "FOUND IT!\n" if /foo/;
    }