in reply to Combining a hash into another
What's wrong with your solution? Another:
%styles = ( %styles, %SVGcal::styles );
And another:
@styles{ keys %SVGcal::styles } = values %SVGcal::styles;
You could also use each if memory is an issue:
while ( my ($k,$v) = each %SVGcal::styles ) { $styles{$k} = $v; }
Update: Added two other methods.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Combining a hash into another
by John M. Dlugosz (Monsignor) on May 27, 2008 at 08:15 UTC |