Help for this page

Select Code to Download


  1. or download this
    while ( <DATA> ) {
      if ( /(foo)|(bar)|(baz)/ ) {
        print "Found $+ line $.\n";
    ...
    Stuff
    The quick brown baz jumps over the lazy bar
    foo
    
  2. or download this
    use strict;
    use warnings;
    
    ...
      }
      $. = 0 if eof;
    }