in reply to print format
Since you haven't said how your original data is organized, it could be as simple as:
Really, any answer you can get is nonsense until you've described how your source data sits.print <<'END'; 1223455 abdkek akdjeg ksitjls jsoirl lsiet oliut 2874824 lsiugl potpsgj postis potltids 1375080 0875709 llskgjo ooiwuto 9876653 lsgjgdlk ldkgjldj END
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In Section
Seekers of Perl Wisdom