Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Handling A File In Human-Compatible Chunks

by Cody Pendant (Prior)
on Jun 29, 2005 at 03:41 UTC ( [id://470888]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $reader->open ("/path/to/file.txt");
    
    ...
    {
        print "$chunk\n****************\n";
    }
    
  2. or download this
    while ( my $chunk = $reader->chunk("/path/to/file.txt") )
    {
        print "$chunk\n****************\n";
    }
    
  3. or download this
    package ChunkReader;
    
    ...
        return $chunk;
    }
    1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found