in reply to Reading a huge input line in parts
You say you cannot afford to slurp and split, can you afford to slurp? Then use a regex to extract the digits one by one.
my $all = <>; do_something($1) while $all =~ /(\d+)/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading a huge input line in parts
by kroach (Pilgrim) on May 04, 2015 at 17:34 UTC |