Think about Loose Coupling | |
PerlMonks |
Re^2: how ! operator worksby moritz (Cardinal) |
on Feb 04, 2011 at 08:51 UTC ( [id://886157]=note: print w/replies, xml ) | Need Help?? |
This "False" value is basically the same as
Which stems from the curious fact that a Perl scalar internally has a slot for both a numeric and a string value. By explicitly providing a numeric value, you don't get a warning when used as a number:
Note that when abused, these dualvars can be very confusing:
Devel::Peek shows that the False value is a wee bit more special than that:
So it's not only a dualvar, but it's also readonly, and has a very high refcount - it's basically a singleton.
In Section
Seekers of Perl Wisdom
|
|