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

Re^2: Inchworm vs scalar: on boolean false value

by Eily (Monsignor)
on Dec 17, 2019 at 14:30 UTC ( #11110278=note: print w/replies, xml ) Need Help??


in reply to Re: Inchworm vs scalar: on boolean false value
in thread Inchworm vs scalar: on boolean false value

Binary "~~" does a smartmatch between its arguments.
Here it's the unary ~~ though (or rather, two unary ~ in a row), because of the commas, the same way that A, -B is a list of two values, not the difference between the list (A,) and the scalar B.

Replies are listed 'Best First'.
Re^3: Inchworm vs scalar: on boolean false value
by LanX (Archbishop) on Dec 17, 2019 at 15:59 UTC
    It looked unary for me too, but I'd rather prefer being sure.

    That's why I mentioned Deparse.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-06-01 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (177 votes). Check out past polls.

    Notices?