Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Bring back the smartmatch operator (but with sane semantics this time)!

by moritz (Cardinal)
on Jun 12, 2014 at 09:45 UTC ( #1089674=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -wE 'say 0 + "1.2"'
    1.2
    $ perl -wE 'say 0 + "1.2.3"'
    Argument "1.2.3" isn't numeric in addition (+) at -e line 1.
    1.2
    
  2. or download this
    $ perl -wE 'say 0 + !1' # no warning
    0
    $ perl -wE 'my $false = !1; say "<<$false>>"' # empty string!
    <<>>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-10-01 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (6 votes), past polls