Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Slurp or Read

by Tyke (Pilgrim)
on Nov 01, 2001 at 02:05 UTC ( [id://122443]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
            $handle_size, length $buffer
    }
    __END__
    
  2. or download this
    1)  dos1 ( ): File size       9, Read length       6,
                : Handle size     9, Buffer length     6,
    ...
                : Handle size 20069, Buffer length  4716,
    6) p.exe (b): File size   20069, Read length   20069,
                : Handle size 20069, Buffer length 20069,
    
  3. or download this
    1)  dos1 ( ): File size       9, Read length       9,
                : Handle size     9, Buffer length     9,
    ...
                : Handle size 20069, Buffer length 20069,
    6) p.exe (b): File size   20069, Read length   20069,
                : Handle size 20069, Buffer length 20069,
    
  4. or download this
    #!/usr/bin/perl
    use strict;
    ...
        close IT;
    }
    __END__
    
  5. or download this
    Processing a text file, 100 bytes long
    Benchmark: running read, slurp, sysread, each for at least 20 CPU seco
    +nds...
    ...
    slurp   460/s      --    -21%    -35%
    read    585/s     27%      --    -18%
    sysread 710/s     55%     21%      --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://122443]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-23 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found