Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: two + 2 not equal 4!

by toolic (Bishop)
on Jul 24, 2010 at 02:36 UTC ( #851109=note: print w/replies, xml ) Need Help??


in reply to Re: two + 2 not equal 4!
in thread two + 2 not equal 4!

So it seems the parser treats your "two" as a bareword and converts it to 0 in numeric context
No. A bareword would generate a compile error with strict. B::Deparse shows us what's going on.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851109]
help
Chatterbox?
[erix]: maybe their security guy who was sacked - he could write a book, or at least a blog
[erix]: one has to suppose he'll have some time on his hands :P

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













    Results (324 votes). Check out past polls.

    Notices?