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 ];