Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-07-30 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls