Thread Array in Hash ? (3 answers)
Opened by jan99 at 2011-06-14 08:42

Gast wer
 2011-06-14 11:04
#149584 #149584
Nutze ein anonymes Array:
Code (perl): (dl )
1
2
3
my %config=(
  notes=>[qw(fixme note name:offical note:ref:svhl)],
 );


Zugriff:
$config{notes}->[0] wert: "fixme"
@notes=@{$config{notes}}

wenn
$conf=\%config;

dann Zugriff:
$conf->{notes}->[1] wert: "note"
@notes=@{$conf->{notes}}

View full thread Array in Hash ?