Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-23 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?