Help for this page

Select Code to Download


  1. or download this
    while( read DATA, $data, BLOCKLEN ) {
        ## Extract the header from the front of the block
    ...
        
        ## do something with it.
    }
    
  2. or download this
    until( eof DATA ) {
        read DATA, my $header, BLOCKHDR or die;
    ...
        read DATA, my $trailer, BLOCKTRL or die;
        ## Do stuff with $trailer
    }