Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to swap rows with columns?

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

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       0 .. max(map { $#{ $_ } } @arr);
    
    print Data::Dumper->Dumpxs([\@transposed], [q{*transposed}]);
    
  2. or download this
    @arr = (
             [
    ...
                      'sei'
                    ]
                  );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2021-04-21 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?