Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Perl5 Language Extension: Definedness-Triggered Shortcut Operators

by martin (Friar)
on Mar 20, 2012 at 17:42 UTC ( [id://960608]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl5 Language Extension: Definedness-Triggered Shortcut Operators
in thread RFC: Perl5 Language Extension: Definedness-Triggered Shortcut Operators

You are right, triple ampersand parses as "boolean and" followed by a "subroutine call sigil". Too bad.

  • Comment on Re^3: Perl5 Language Extension: Definedness-Triggered Shortcut Operators

Replies are listed 'Best First'.
Re^4: Perl5 Language Extension: Definedness-Triggered Shortcut Operators (odds)
by tye (Sage) on Mar 20, 2012 at 19:18 UTC

    The odds of there being code in the wild that does $a&&&foo() with no space seem pretty slim to me. It even seems rather unlikely in an obfu. Not that I have personally witnessed p5p be swayed by such arguments before.

    The odds of "$a &&& $b" being non-broken code in the wild seems even slimmer.

    - tye        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found