Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 lurking in the Monastery: (15)
As of 2014-09-23 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (234 votes), past polls