Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-26 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (171 votes), past polls