Help for this page

Select Code to Download


  1. or download this
    sub readNLines {
        my $lines_to_read = shift or die '....';
    ...
    }
    
    while (@lines = readNLines(4)) { do_stuff() }
    
  2. or download this
        while ( my $record = readRecord( ... ) ) { ... }
    
  3. or download this
        while ( $line1=<> && $line2=<> && $line3=<>... ) { ... }