Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by fenonn (Chaplain)
on Jun 07, 2001 at 23:21 UTC ( #86695=note: print w/replies, xml ) Need Help??


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

Well if there is a char that marks the end of a row (new line for example) you could try something like this.
@array = map { [split//] } (split/\n/,$string);
  • 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://86695]
help
Chatterbox?
[Lady_Aleena]: marioroy, welcome to my insanity. 8)
marioroy likes Dragod, an unbelievably huge dragon. It is bigger than any planet. Wow.
[Lady_Aleena]: marioroy, not my creation, it was submitted a long long time ago when I had submission forms with a form script I can't remember the name of off the top of my head.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-05-29 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?