print +(join ' ', grep {/\d/} split /(..)/), "\n";
was what I had in mind, although the autoflush trick (--$|, see $| pre and post increment and deincrement behavior) is kinda cute too ;).
Update: added link
In reply to Re^3: how to split input data ?
by GrandFather
in thread how to split input data ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |