Thread Hashes zusammenlegen (4 answers)
Opened by bloonix at 2006-01-11 18:47

bloonix
 2006-01-11 19:31
#61678 #61678
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=Taulmarill,11.01.2006, 18:23]im prinzip genau so, du musst die referenzen nur dereferenzieren um sie wie hashes benutzen zu können. das hast du ja oben auch schon selbst vorgeschlagen.[/quote]
*ARG*

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/local/bin/perl -w
use strict;

use Data::Dumper;

my $color1 = { blue => '#00f', red => '#f00'};
my $color2 = { pink => '#f0f', yel => '#ff0'};

my %color1 = (%{$color1}, %{$color2});

print Dumper \%color1;


klaro! wie dumm von mir :)

danke!
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Hashes zusammenlegen