Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: PerlIO file handle dup

by marioroy (Vicar)
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 cooling their heels in the Monastery: (7)
As of 2020-02-29 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?