Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: arrange output in columns

by poj (Monsignor)
on Jun 18, 2013 at 14:39 UTC ( #1039570=note: print w/replies, xml ) Need Help??

in reply to Re: arrange output in columns
in thread arrange output in columns

"I might get the bugs out of this later.... "

Here's the 3 missing characters you'll need to fix the script  = { }

but even when fixed it doesn't give the required result for files with different record counts.

Output Required a,2 a,2 b,f b,f c,4 c,4 s ,s w ,w

Replies are listed 'Best First'.
Re^3: arrange output in columns
by space_monk (Chaplain) on Jun 18, 2013 at 15:20 UTC
    Thanks for the input. I knocked this up in part of my lunchbreak while munching a burrito, and it was totally untested. :-)

    Update: I spotted the problems you mentioned before you posted and they've now been fixed.

    Anyway, as my footer says, it's polite to ensure that the reader still has to think through some of the issues, especially as this may be a homework assignment! :-)

    If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039570]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2018-04-25 05:50 GMT
Find Nodes?
    Voting Booth?