Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
The stupid question is the question not asked
 
PerlMonks  

Re: how to split the elements in an array of arrays ?

by wjw (Friar)
on Oct 31, 2006 at 20:11 UTC ( #581554=note: print w/ replies, xml ) Need Help??


in reply to how to split the elements in an array of arrays ?

If I understand you correctly, the only line you are really interested in is the one with the long string of all_caps letters which you have stored as a scalar element in an array called @se. Instead of one big string, you want that to contain a reference to an array of individual letters?

Have to agree with ptum, but for clarity's sake, the

'unknown' => [];

would get filled with

 'unknown' => {split(//,$_)};

. This could be done with an array of arrays too though... and I would probably go with a hashes of hashes with the last value of each contained hash being the array of letters... But then maybe I am just dazed and confused... :-)

...the majority is always wrong, and always the last to know about it...


Comment on Re: how to split the elements in an array of arrays ?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2013-05-24 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (516 votes), past polls