Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: arrange output in columns

by poj (Parson)
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
poj

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2016-12-08 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (135 votes). Check out past polls.