Help for this page

Select Code to Download


  1. or download this
    my $buf;
    $scalar .= $buf while read(FH, $buf, 4096);
    
  2. or download this
    my $size = (stat FH)[7];
    read(FH, $scalar, $size);