Help for this page

Select Code to Download


  1. or download this
    my $data; do {local $/; $data = <FILE> };
    
  2. or download this
    my $data = do {local $/; <FILE> };
    
  3. or download this
    my $size = -s( $filename );
    open my $fh, '<', $filename or die $!;
    read( $fh, my $data, $size );