in reply to The Oops operator.

my $href = { reverse field1 => 'this', field2 => 'that', field3 => 'another', field3 => 'YetAnother', # etc };

Replies are listed 'Best First'.
Re: Re (tilly) 1: The Oops operator.
by runrig (Abbot) on Jul 26, 2001 at 23:35 UTC
    I like that :) But what I think I'll end up doing is using an array ref and passing that to another function, and reversing the array to a hash within the function, because I don't want the caller to be bothered with the reverse :)