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;
In reply to Re: Reading a huge input line in parts
by hdb
in thread Reading a huge input line in parts
by kroach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |