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

I don't understand , how it is pathological (having properties that cause unusually bad behaviour, especially regarding correctness or performance)?
  • Comment on Re^3: the annoying keys "key" and "value"

Replies are listed 'Best First'.
Re^4: the annoying keys "key" and "value"
by ikegami (Patriarch) on Dec 24, 2010 at 02:53 UTC
    I believe he means "unduly hard to use". That may or may not be true depending on what's needed of the data.
      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.