in reply to Comma separated list into a hash

Now I'm in a quandry, how much hint is too much? If I am of understanding, the solution would be little longer than the hint(s).

Is this a small enough hint (in order of appearance)?

   split
   foreach
   ++

Replies are listed 'Best First'.
Re: Re: Comma separated list into a hash
by BUU (Prior) on Apr 26, 2004 at 03:38 UTC
    I'd think you could do
    keys split
    And a bunch of (missing :) ) punctuation..
      Now you've done it. You do realize that I now feel compelled to figure out how this is done. :^)
        Actually I was being overly clever and I forgot a map keyword. Whoops =/.

        Corrected: print keys map split;

        Just add three '}', three '{', one % sign and stir. =]