Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1089674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found