in reply to Reading a huge input line in parts
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading a huge input line in parts
by kroach (Pilgrim) on May 04, 2015 at 15:59 UTC | |
by hdb (Monsignor) on May 04, 2015 at 16:11 UTC | |
by Laurent_R (Canon) on May 04, 2015 at 17:58 UTC |