Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

swap columns in a 2-dim array

by davidj (Priest)
on Jun 17, 2005 at 08:35 UTC ( #467617=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
            @$arr[$i,$j] = @$arr[$j,$i];
        }
    }
    
  2. or download this
    03 04 01 02 11 08 09 06 07 12 05 10
    03 04 01 02 11 08 09 06 07 12 05 10
    ...
    03 04 01 02 11 08 09 06 07 12 05 10
    03 04 01 02 11 08 09 06 07 12 05 10
    03 04 01 02 11 08 09 06 07 12 05 10
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-09-03 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls