Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!

by serf (Chaplain)
on Jan 01, 2006 at 15:47 UTC ( #520252=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array = <FILE>;
    
  2. or download this
    while(<FILE>) {
        push(@array, $_);
    }
    
  3. or download this
    open (DF, "test.txt") || die "Can't read 'test.txt': $!\n"
    
  4. or download this
    use strict;
    use warnings;
    
  5. or download this
    perl -MO=Deparse -e 'open (DF, "test.txt") || die "Cant read test.txt\
    +n";'
    
  6. or download this
    die "Can't read test.txt\n" unless open DF, 'test.txt';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2022-01-19 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?