heidi has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: how to split the elements in an array of arrays ?
by wjw (Priest) on Oct 31, 2006 at 20:11 UTC
    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...

Re: how to split the elements in an array of arrays ?
by ptum (Priest) on Oct 31, 2006 at 18:28 UTC

    I'm sure lots of us would be glad to help. What have you tried so far, heidi?

    Hint: try split with an empty pattern //.

    A reply falls below the community's threshold of quality. You may see it by logging in.