Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: arrange output in columns

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


Comment on Re^2: arrange output in columns
Select or Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-21 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls