RE: Autovivification/$key++ (was RE: $hash{$_}++)

2001-06-18 Thread Peter Scott
At 06:09 PM 6/18/01 -0700, Peter Cornelius wrote: > > At 04:36 PM 6/18/01 -0700, Peter Cornelius wrote: > > >use Data::Dumper; > > > > > >%hash = ( > > > 1 => "I exist...", > > > 2 => "This is academic", > > > 3 => "I should be using an array" > > > ); > > > > > >pr

RE: Autovivification/$key++ (was RE: $hash{$_}++)

2001-06-18 Thread Peter Cornelius
> At 04:36 PM 6/18/01 -0700, Peter Cornelius wrote: > >use Data::Dumper; > > > >%hash = ( > > 1 => "I exist...", > > 2 => "This is academic", > > 3 => "I should be using an array" > > ); > > > >print Dumper \%hash; > > > >for $key (keys %hash) { > > $hash{$k

Re: Autovivification/$key++ (was RE: $hash{$_}++)

2001-06-18 Thread Peter Scott
At 04:36 PM 6/18/01 -0700, Peter Cornelius wrote: >use Data::Dumper; > >%hash = ( > 1 => "I exist...", > 2 => "This is academic", > 3 => "I should be using an array" > ); > >print Dumper \%hash; > >for $key (keys %hash) { > $hash{$key++}="Redefined"; >