Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    
    my $count;
    print 'Match ', ++$count, ": '$_'\n" foreach @matches;
    
  2. or download this
    Match 1: 'Second lineThird line'
    Match 2: 'Fourth lineFifth line'