in reply to Re^2: how to split input data ?
in thread how to split input data ?

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


DWIM is Perl's answer to Gödel