Help for this page

Select Code to Download


  1. or download this
    while (<FH>) {
        chomp;
    ...
                and print "matched: $1\n";
        }
    }
    
  2. or download this
    while (<FH>) {
        chomp;
        my @all_matches = m/ ... /xg;
        my @first_few   = @all_matches[0 .. 1];
    }