in reply to Re: Hashes and keys...
in thread Hashes and keys...
davidrw, I am sure you meant $params->{value}, but I have two questions (one on personal style): why do you prefer creating a hash reference from an incoming hash (i.e., why not %params = @_?). Also, do you know that my $value = $p->{value} does the same thing as your code? (If the key doesn't exist, the hash lookup returns undef.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hashes and keys...
by holli (Abbot) on Jun 28, 2005 at 06:51 UTC | |
by kaif (Friar) on Jun 28, 2005 at 11:58 UTC | |
by davidrw (Prior) on Jun 28, 2005 at 12:10 UTC | |
|
Re^3: Hashes and keys...
by davidrw (Prior) on Jun 28, 2005 at 12:06 UTC |