John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
I want to take all the stuff from hash %B and copy them into hash %A. I expect any duplicates to be true duplicates by key name, so the behavior (overwrite or ignore) does not matter.foreach my $key (keys %SVGcal::styles) { $styles{$key} = $SVGcal::styles{$key} }
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combining a hash into another
by ikegami (Patriarch) on May 27, 2008 at 04:34 UTC | |
by John M. Dlugosz (Monsignor) on May 27, 2008 at 08:15 UTC | |
|
Re: Combining a hash into another
by pc88mxer (Vicar) on May 27, 2008 at 04:37 UTC | |
by ambrus (Abbot) on May 27, 2008 at 05:40 UTC | |
by ysth (Canon) on May 27, 2008 at 09:46 UTC | |
by ambrus (Abbot) on May 27, 2008 at 14:49 UTC | |
|
Re: Combining a hash into another
by dragonchild (Archbishop) on May 27, 2008 at 12:57 UTC | |
|
Re: Combining a hash into another
by hangon (Deacon) on May 27, 2008 at 21:01 UTC | |
by ikegami (Patriarch) on May 27, 2008 at 21:56 UTC | |
by hangon (Deacon) on May 28, 2008 at 00:48 UTC |