Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    int main(int argc, char** argv)
    
    /* END */
    
  2. or download this
    $ pm_multi_line_match.pl
    Match found on line 3
    Match found on line 6
    
  3. or download this
        print "Match found on line ",
                split(/\n/, substr $text, 0, pos $text) - split(/\n/, ${^M
    +ATCH}) + 1,
                "\n";