in reply to join should polymorph on hashes

Are you aware of the other common idioms for this sort of thing?
%hash = (%hash, @more); %hash = (%hash, %more); @hash{@keys} = @values;
Your hash join can be rewritten in the first form, though I usually try to arrange things so that the last one is possible.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Re: join should polymorph on hashes
by princepawn (Parson) on May 02, 2001 at 00:57 UTC
    How are any of these creating a string representation of hash contents?
      I read your node as using join to append a list to hash. Now that I look at the names you chose for your hash keys, I can see what you meant more clearly; though I hadn't bothered to consider the names because I don't forsee any Perl built-ins using named parameters.
         MeowChow                                   
                     s aamecha.s a..a\u$&owag.print