Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Loading a part of the file to array using Tie::File

by kcott (Archbishop)
on Nov 24, 2017 at 00:02 UTC ( [id://1204180]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat XXX
    A
    ...
    C
    D
    E
    
  2. or download this
    $ alias perle
    alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -E'
    
  3. or download this
    $ perle 'open my $fh, "<", "XXX"; while (<$fh>) { print if 3 .. eof }'
    C
    D
    E
    
  4. or download this
    $ perle 'open my $fh, "<", "XXX"; while (<$fh>) { print if 1 .. 3 }'
    A
    B
    C
    
  5. or download this
    $ perle 'open my $fh, "<", "XXX"; while (<$fh>) { print if 2 .. 4 }'
    B
    C
    D
    

Log In?
Username:
Password:

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

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

    No recent polls found