Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

How to swap rows with columns?

by perl_geek (Initiate)
on Oct 09, 2007 at 20:12 UTC ( #643792=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    -----------------------
    1 2 3
    a b c
    x y z
    -----------------------
    
  2. or download this
    -----------------------
    1 a x
    2 b y
    3 c z
    -----------------------
    
  3. or download this
    my @data = (['1','a','x' ],  ['2','b','y'  ],  ['3','c','z' ]);
    
  4. or download this
    =============================
    
  5. or download this
    17:12:41       0       0       0     100
    17:12:42       0       1       0      99
    17:12:43       0       0       0     100
    :
    :
    
  6. or download this
    17:12:41    17:12:42    17:12:43  :     :    ...  ...  ...
    0           0           0         :     :    ...  ...  ...
    0           1           0         :     :    ...  ...  ...
    0           0           0         :     :    ...  ...  ...
    100         99          100       :     :    ...  ...  ...
    
  7. or download this
    my @data = (
    ['17:12:41','17:12:42','17:12:43'.........],
    ['0','1','0'.........],
    ['0','0','0'.........],
    ['100','99','100'.....]);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://643792]
Approved by Corion
Front-paged by naikonta
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2021-01-19 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?