Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How can I cleanly split a string of text into a two-dimensional array

by nothingmuch (Priest)
on Jan 14, 2005 at 17:07 UTC ( #422319=note: print w/ replies, xml ) Need Help??


in reply to How can I cleanly split a string of text into a two-dimensional array

map { [ split '', $_ ] } unpack join(" ", ("a$width") x $height), $string;
-nuffin
zz zZ Z Z #!perl


Comment on Re: How can I cleanly split a string of text into a two-dimensional array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2015-07-29 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls