Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        local $/ = "\n\n";
        print grep /\b(?:third|four)\b/i, <>;    
    }
    
  2. or download this
    C:\Old_Data\perlp>perl test3.pl testlines.txt
    This is line one.
    Line Two is this.
    Third line starts here.
    This is line four.