There's more than one way to do things | |
PerlMonks |
Re^4: How to swap rows with columns?by BrowserUk (Patriarch) |
on Oct 10, 2007 at 22:42 UTC ( [id://644110]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|