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
Tx.
That works, but this#iterate while ( my $chunk = $reader->chunk ) { print "$chunk\n****************\n"; }
does not. $_ is not set. How can I achieve that behaviour?#iterate while ( $reader->chunk ) { print "$_\n****************\n"; }
Tx.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sub that sets $_
by tlm (Prior) on Jun 28, 2005 at 10:39 UTC | |
by ikegami (Patriarch) on Jun 28, 2005 at 15:19 UTC | |
by tlm (Prior) on Jun 28, 2005 at 15:32 UTC | |
by holli (Abbot) on Jun 28, 2005 at 10:45 UTC | |
by blazar (Canon) on Jun 28, 2005 at 11:03 UTC | |
Re: sub that sets $_
by TheDamian (Vicar) on Jun 28, 2005 at 11:52 UTC | |
by Animator (Hermit) on Jun 28, 2005 at 12:08 UTC | |
by TheDamian (Vicar) on Jun 29, 2005 at 00:04 UTC | |
by TheDamian (Vicar) on Jun 29, 2005 at 00:54 UTC | |
by holli (Abbot) on Jun 28, 2005 at 12:29 UTC | |
by Animator (Hermit) on Jun 28, 2005 at 12:54 UTC | |
Re: sub that sets $_
by monarch (Priest) on Jun 28, 2005 at 11:01 UTC | |
Re: sub that sets $_
by anonymized user 468275 (Curate) on Jun 28, 2005 at 11:17 UTC | |
by Joost (Canon) on Jun 28, 2005 at 14:06 UTC | |
by holli (Abbot) on Jun 28, 2005 at 12:31 UTC | |
by anonymized user 468275 (Curate) on Jun 28, 2005 at 13:23 UTC | |
by holli (Abbot) on Jun 28, 2005 at 13:31 UTC | |
by anonymized user 468275 (Curate) on Jun 28, 2005 at 13:52 UTC | |
| |
by Jaap (Curate) on Jun 28, 2005 at 11:55 UTC |
Back to
Seekers of Perl Wisdom