Help for this page

Select Code to Download


  1. or download this
    open TEST,"@ARGV[0]";
    
  2. or download this
    open(my $TEST, "<", $ARGV[0])
       or die("Can't open \"$ARGV[0]\": $!\n");
    
  3. or download this
    $flag = "ON"
    ...
    $flag = "OFF"
    
  4. or download this
    my $looking = 1;
    ...
    $looking = 0;
    
  5. or download this
    while (<TEST>)
    
  6. or download this
    while (<>)
    
  7. or download this
    if (/test/ and $flag eq "ON")
    
  8. or download this
    if ($looking && /test/)
    
  9. or download this
    print "start";
    
  10. or download this
    print "start\n";
    
  11. or download this
    say "start";
    
  12. or download this
    close TEST;
    
  13. or download this
    use strict;
    use warnings qw( all );
    ...
          $looking = 0;
       }
    }
    
  14. or download this
    use strict;
    use warnings qw( all );
    ...
          last;
       }
    }