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.)
In reply to Re^2: Hashes and keys...
by kaif
in thread Hashes and keys...
by mkenney
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |