Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    while (defined (my $line = <$inA>)) {
        print "Found '$1' in line $.:\n   $line" if $line =~ $match;
    }
    
  2. or download this
    Found 'is a' in line 1:
       This is a boy.
    ...
       This apple is big.
    Found 'small' in line 6:
       That orange is small.