Help for this page

Select Code to Download


  1. or download this
    local $/ = \128;
    while (<$fh>) {
       ... $_ contains 128 bytes ...
    }
    
  2. or download this
    while (length($str)) {
       my $rec = substr($str, 0, 128, '');
       ... $rec contains 128 bytes ...
    }