Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: PerlIO file handle dup

by marioroy (Priest)
on Mar 07, 2017 at 19:37 UTC ( #1183876=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @lines = tied(*{$fh})->readlines(10);
    
  2. or download this
    # same as chunk_size => 1 in MCE
    $n_lines = mce_read $fh, \@lines, 1;
    ...
    
    $. gives chunk_id
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2019-06-17 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (80 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!