Help for this page

Select Code to Download


  1. or download this
    my $file = shift @ARGV;
    
    if (open my $FH , $file) {
        my $start_pattern_found = 0;
        while (my $line = <$FH>) {
    
  2. or download this
    while (<>) {
        chomp;
        next if 1 .. /^internal name/;
        print "Found pattern at line $.\n" if /^need this/;
    }