On Sep 19, JupiterHost.Net said:

>I want to add a hash to a hash,
>
>So how can I add %w to %q in that example?

The general way is:

  # to add %w to %q
  @q{keys %w} = values %w;

If there are overlapping keys, %w's values will be used.

-- 
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to