http://qs1969.pair.com?node_id=376463


in reply to When is => ne , (warning rather arcane and possibly totally useless)

When it's the same as

P:\test>perl -e"'fred' => 1;"

A hash element pair in a void context?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: When is => ne , (warning rather arcane and possibly totally useless)
by bunnyman (Hermit) on Jul 22, 2004 at 15:13 UTC

    There is no "hash" involved here. It's merely a list.

    perl -MO=Deparse -e "'moo', 'oom', 'zoop'" '???', '???', '???'; -e syntax OK

      I've been reading to much Perl 6 stuff where Pairs are distinct entities. Your right. It's just a 2 element list in a void context which is being optimised away. Hence the '???'.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon