Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: How to swap rows with columns?

by johngg (Canon)
on Oct 10, 2007 at 20:43 UTC ( #644080=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to swap rows with columns?
in thread How to swap rows with columns?

Now that's very neat! BrowserUk++

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^4: How to swap rows with columns?
by BrowserUk (Pope) on Oct 10, 2007 at 22:42 UTC

    Not so neat after all. It relies on the fact that your data had the biggest sub-array last. Move it to any other position and it fails. You still need max() for a proper solution.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://644080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2021-10-26 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?