Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how ! operator works

by ikegami (Pope)
on Feb 04, 2011 at 08:44 UTC ( #886156=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wE"say ''.!1"
    
    
    >perl -wE"say 0+!1"
    0
    
  2. or download this
    >perl -wE"say ''.0"
    0
    
    >perl -wE"say 0+0"
    0
    
  3. or download this
    >perl -wE"say ''.''"
    
    ...
    >perl -wE"say 0+''"
    Argument "" isn't numeric in addition (+) at -e line 1.
    0
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://886156]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-11-18 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?