Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Strings and numbers: losing memory and mind.

by kyle (Abbot)
on Sep 28, 2007 at 04:04 UTC ( [id://641464]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for( my $i = 0; $i < 1_000_000; $i++ ) {
        print join ' ', map { int rand 256 } 0 .. 50;
        print "\n";
    }
    
  2. or download this
    my @d; $#d = 1_000_000; # presize the array!
    my $i = 0;
    ...
        chomp;
        $d[$i++] = [ split ];
    }
    
  3. or download this
        $d[$i++] = [ map { int $_ } split ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found