Help for this page

Select Code to Download


  1. or download this
    read $fh, 5, 10
      or die;
    
  2. or download this
    my $bytes = 5;
    my $count = read $fh, $bytes, 10;
    ...
    else {
      die sprintf "Want %i bytes, got %s!", $bytes, $count // '<undef>';
    }