Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

How to swap rows with columns?

by perl_geek (Initiate)
on Oct 09, 2007 at 20:12 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found