in reply to How hashes present keys and values.

If you're unsure of the behavior of keys and values, the documentation is easily accessible.

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
    Is that a transcription error? As shown, it will create a hash with one element.
    The line is actually my ($l_tablename,%l_fields)  = @_;. I don't know what came over me to write that. I blame my general lack of caffeination.