What is wrong with the last number? Is it ignored? Then undo your setting of $/ and read again. Does it have a newline? Then use a regex to get rid of it. In any case I would think you should chomp your input to get rid of the blanks.
Update: try to add s/\s//g before your call to do_something.
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |