Help for this page

Select Code to Download


  1. or download this
    my $linesToSkip = 2;
    while ( <FILE> )
    ...
        # Do something here with the lines of interest.
        ...
    }
    
  2. or download this
    my $linesToSkip = 2;
    my $discard = <FILE> for 1 .. $linesToSkip;
    ...
        # Do something here with the lines of interest.
        ...
    }