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.)
I discovered the trick perusing boolean which uses it to good effect. It makes boolean expressions such as "foo" eq "bar" return boolean objects (which in turn overload boolification). The net effect is to give Perl a boolean type.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl allows you to change the definition of false to make it true. (And vice versa.)
by BrowserUk (Patriarch) on Dec 12, 2012 at 22:09 UTC | |
Re^3: Perl allows you to change the definition of false to make it true. (And vice versa.) (boolean.pm)
by tye (Sage) on Dec 12, 2012 at 22:39 UTC |