http://www.perlmonks.org?node_id=470565

holli has asked for the wisdom of the Perl Monks concerning the following question:

Monks, in Re: Handling A File In Human-Compatible Chunks i proposed a module that can be used like
#iterate while ( my $chunk = $reader->chunk ) { print "$chunk\n****************\n"; }
That works, but this
#iterate while ( $reader->chunk ) { print "$_\n****************\n"; }
does not. $_ is not set. How can I achieve that behaviour?

Tx.