Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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