Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^8: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)

by shmem (Canon)
on Dec 01, 2013 at 20:54 UTC ( #1065182=note: print w/ replies, xml ) Need Help??


in reply to Re^7: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

That's not how context works at all

I'm baffled. So you are telling me that I don't know about context in Perl?

  • %{ ... } evaluates to a hash or a list.

And how, pray, is the "or" resolved? There.

Anyways, you are right. Im sick of tennis match like conversations. I'm not here to win.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'


Comment on Re^8: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)
Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)
by Anonymous Monk on Dec 01, 2013 at 21:14 UTC

    Anyways, you are right. Im sick of tennis match like conversations. I'm not here to win.

    you'll never be pope with that attitude ;) :D

Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)
by ikegami (Pope) on Dec 03, 2013 at 02:28 UTC

    I'm baffled. So you are telling me that I don't know about context in Perl?

    I can't comment on what you know, just on what you say.

    Context doesn't cause values to be coerced. Operators return different values based on the context. That's why $x = (4,5,6); and @a = (4,5,6); $x = @a; result in different values in $x.

    And how, pray, is the "or" resolved? There.

    I'm not sure what the means. Are you asking how it's determined when %... evaluates to a hash and when %... evaluates to a list? It's based on the operator that parses it. e.g. keys(%foo) or \%foo vs print(%foo).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-12-28 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls