in reply to Re^3: the annoying keys "key" and "value"
in thread the annoying keys "key" and "value"

I believe he means "unduly hard to use". That may or may not be true depending on what's needed of the data.
  • Comment on Re^4: the annoying keys "key" and "value"

Replies are listed 'Best First'.
Re^5: the annoying keys "key" and "value"
by Anonymous Monk on Dec 24, 2010 at 03:08 UTC
    Hmm, that doesn't clarify it for me

      Say you want an associative array.

      With a hash, a lookup would look like

      my $val = $hash{$key};

      With the OP's structure, a lookup would look like

      my ($val) = map $_->{value}, grep $_->{key} eq $key, @$data;

      That makes it a "pathological" structure to use as an associative array. However, it's an appropriate structure to store ordered key-value pairs.