- or download this
sub genBufferedGetNum {
return sub {
...
while( my @part = $getNum->() ) {
print @part, "\n";
}
- or download this
$: cat tb.dat
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
$:
- or download this
$: cat tb.dat | perl tb.pl
01234
...
01234
56789
0