Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Perl allows you to change the definition of false to make it true. (And vice versa.)

by tobyink (Abbot)
on Dec 13, 2012 at 14:30 UTC ( #1008667=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl allows you to change the definition of false to make it true. (And vice versa.)
in thread Perl allows you to change the definition of false to make it true. (And vice versa.)

Python allows you to redefine the "constants" True and False, but that doesn't change the behaviour of...

>>> "foo"=="bar" False
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re^2: Perl allows you to change the definition of false to make it true. (And vice versa.)
Select or Download Code
Re^3: Perl allows you to change the definition of false to make it true. (And vice versa.)
by LanX (Canon) on Dec 13, 2012 at 14:43 UTC
    So Python is easier to brake, but is incomplete in this attempt? ;-)

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008667]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-09-21 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls