Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How to warp an array by trading X/Y coordinates (rows/columns)

by Polyglot (Chaplain)
on Mar 08, 2016 at 15:50 UTC ( [id://1157093]=note: print w/replies, xml ) Need Help??


in reply to Re: How to warp an array by trading X/Y coordinates (rows/columns)
in thread How to warp an array by trading X/Y coordinates (rows/columns)

Wow, you both are fast! Thank you! I thought there must be a way to do this with map. I'm not working on single characters, but with split I think I can find a suitable delimiter. (In my case, I'm actually working with LaTeX codes for each entry, so each array "element" is actually a piece of code text.) I'll give your suggestion a try.

Blessings,

~Polyglot~

  • Comment on Re^2: How to warp an array by trading X/Y coordinates (rows/columns)

Replies are listed 'Best First'.
Re^3: How to warp an array by trading X/Y coordinates (rows/columns)
by BrowserUk (Patriarch) on Mar 08, 2016 at 15:56 UTC
    I'm not working on single characters, but with split I think I can find a suitable delimiter.

    I was just being lazy. It works exactly the same for strings provided they do not contain spaces:

    C:\test>1157088.pl [ ["one", "five", "nine", "thirteen"], ["two", "six", "ten", "fourteen"], ["three", "seven", "eleven", "fifteen"], ["four", "eight", "twelve", "sixteen"], ] [ ["one", "two", "three", "four"], ["five", "six", "seven", "eight"], ["nine", "ten", "eleven", "twelve"], ["thirteen", "fourteen", "fifteen", "sixteen"], ]

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found