![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: On TRUE and FALSEby Rhose (Priest) |
on Jun 20, 2003 at 17:04 UTC ( #267655=note: print w/replies, xml ) | Need Help?? |
Good point. While I never use these constants for anything other than setting variables I declare, it would be easy to use them otherwise. I started this habit when I was first learning perl as a way of distinguishing "logical" and "numerics" in my code and for setting "logical" options in some modules (like DBI). For example: This just helped me remember I was turning "off" those options instead of setting some "numeric" to zero. Thank you for the suggestion.
In Section
Cool Uses for Perl
|
|