in reply to
Re: Re: Perl Idioms Explained - $|++
in thread Perl Idioms Explained - $|++
First, we don't need Yet-Another-Pair-Of-Constants-For-Zero-And-One.
I've come across cases where it helps readability. Specifically, when there are many cases where some arguments to the same function are actually interpreted as numbers and some others are booleans, then it can be much more maintainable to see something like $button->set_border(TRUE, 0, 2.5);, which clarifies that the 0 was meant as an actual numerical value of zero.
I've never had a case where I wanted any more named constants than for TRUE and FALSE, though.
Makeshifts last the longest.