Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://422319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2023-12-08 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (33 votes). Check out past polls.

    Notices?