Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 meditating upon the Monastery: (13)
As of 2014-09-17 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (92 votes), past polls