Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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: (1)
As of 2014-11-26 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls