in reply to How hashes present keys and values.
I note that the second line of your sub is: my %l_fields = shift; Is that a transcription error? As shown, it will create a hash with one element. You don't show how the subroutine is called, but that line should be either: my %l_fields = @_; or my %l_fields = %{ +shift };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How hashes present keys and values.
by boo_radley (Parson) on Dec 13, 2000 at 19:34 UTC |