Re: Hash reference structure

2005-07-21 Thread Scott R. Godin
Jan Eden wrote: Hi, I need to store a list of month names into a hash structure such that: $self->{monate}->{1}->{bezeichnung} = 'Januar' $self->{monate}->{2}->{bezeichnung} = 'Februar' etc. Until now, I have used the rather clumsy: @month_hash{1..12} = ("Januar", "Februar", "März", "April",

RE: Hash reference structure

2005-07-21 Thread Jan Eden
Thanks, Xavier and Bob, that looks much better. Cheers, Jan Bob Showalter wrote on 21.07.2005: >Jan Eden wrote: >> Hi, >> >> I need to store a list of month names into a hash structure such that: >> >> $self->{monate}->{1}->{bezeichnung} = 'Januar' >> $self->{monate}->{2}->{bezeichnung} = 'F

RE: Hash reference structure

2005-07-21 Thread Bob Showalter
Bob Showalter wrote: > >$self->{monate}{$_}{bezeichnung} = $month_hash{$_} for 1..12; > That could also be 'for keys %month_hash' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Hash reference structure

2005-07-21 Thread Bob Showalter
Jan Eden wrote: > Hi, > > I need to store a list of month names into a hash structure such that: > > $self->{monate}->{1}->{bezeichnung} = 'Januar' > $self->{monate}->{2}->{bezeichnung} = 'Februar' > etc. > > Until now, I have used the rather clumsy: > > @month_hash{1..12} = ("Januar", "Februar

Re: Hash reference structure

2005-07-21 Thread Xavier Noria
On Jul 21, 2005, at 17:21, Jan Eden wrote: Hi, I need to store a list of month names into a hash structure such that: $self->{monate}->{1}->{bezeichnung} = 'Januar' $self->{monate}->{2}->{bezeichnung} = 'Februar' etc. Until now, I have used the rather clumsy: @month_hash{1..12} = ("Januar",

Hash reference structure

2005-07-21 Thread Jan Eden
Hi, I need to store a list of month names into a hash structure such that: $self->{monate}->{1}->{bezeichnung} = 'Januar' $self->{monate}->{2}->{bezeichnung} = 'Februar' etc. Until now, I have used the rather clumsy: @month_hash{1..12} = ("Januar", "Februar", "März", "April", "Mai", "Juni", "J