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

Re: Memory usage while tallying instances of lines in a .txt file

by kcott (Archbishop)
on Dec 06, 2016 at 05:17 UTC ( [id://1177290]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [$index]   -> [$index_of{Strand}]
    [$index+1] -> [$index_of{Type}]
    [$index+2] -> [$index_of{Pos}]
    
  2. or download this
    @index_of{@headers} = 0 .. $#headers;
    
  3. or download this
    #!/usr/bin/env perl -l
    
    ...
        print "Type index:   $index_of{Type}";
        print "Pos index:    $index_of{Pos}";
    }
    
  4. or download this
    Headers:      Strand Type Pos Length Form Adjustment
    Strand index: 0
    ...
    Strand index: 3
    Type index:   1
    Pos index:    0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found