Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Faster and more efficient way to read a file vertically

by johngg (Canon)
on Nov 05, 2017 at 15:37 UTC ( [id://1202779]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E '
    my @alpha = ( qw{ A C G T } ) x 5;
    push @alpha, qw{ . . };
    say join q{}, map { $alpha[ rand @alpha ] } 1 .. 50
       for 1 .. 50000;' > spw1202693.txt
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    close $inFH
       or die qq{close: < $filename: $!\n};
    
  3. or download this
    ok 1 - ANDmask
    ok 2 - brutish
    ...
    unpackM 58.7/s   5194%   3321% 1979% 1914%  377%    68%    25%     22%
    +      --    -44%
    ANDmask  105/s   9407%   6045% 3634% 3517%  757%   201%   124%    118%
    +     80%      --
    1..10
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found