Chon-Ji has asked for the wisdom of the Perl Monks concerning the following question:
code2if(exists $myhash{$key}) { $myhash{$key} = $myhash{$key} + 1; } else { $myhash{$key} = 1; }
$myhash{$key} = $myhash{$key} + 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Initialization of hash element....
by GrandFather (Saint) on Jun 01, 2007 at 02:34 UTC | |
by blazar (Canon) on Jun 01, 2007 at 11:51 UTC | |
|
Re: Initialization of hash element....
by Herkum (Parson) on Jun 01, 2007 at 03:07 UTC | |
|
Re: Initialization of hash element....
by blazar (Canon) on Jun 01, 2007 at 11:58 UTC | |
by ysth (Canon) on Jun 01, 2007 at 18:30 UTC |