Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re (tilly) 1: Reading multiple lines?

by tilly (Archbishop)
on Nov 28, 2000 at 08:06 UTC ( [id://43612]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my @chunk = get_chunk(\*IN, 10)) {
      # etc
    ...
      push @result, scalar <$fh> foreach 1..$count;
      return @result;
    }
    
  2. or download this
    my $sub = chunker(\*IN, 10);
    while (my @chunk = $sub->()) {
    ...
        return @ret;
      };
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found