Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Converting to booleanby davido (Cardinal) |
on Jun 17, 2004 at 04:32 UTC ( [id://367531]=note: print w/replies, xml ) | Need Help?? |
How about a tied scalar operating as a boolean?
This has the characteristic of working a lot like $| (the autoflush special variable), which can only take on 0 or 1 as a value.
Dave
In Section
Meditations
|
|