Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: When is => ne , (warning rather arcane and possibly totally useless)

by BrowserUk (Patriarch)
on Jul 22, 2004 at 04:28 UTC ( #376463=note: print w/replies, xml ) Need Help??


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
  • Comment on Re: When is => ne , (warning rather arcane and possibly totally useless)
  • Download Code

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://376463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-05-22 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?