in reply to Question Marks in Subroutine Names
If it really bothers you that much, you could do...
use constant YES => 1; use constant NO => 0; # ... my $answer = is_contact_female ? YES : NO;
... but it's shamefully redundant if is_contact_female is already returning a true or false; not to mention limiting (ie, you couldn't use 1 to represent 'Yes, and adult', 2 to be 'Yes, but teen', etc.).
--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(crazyinsomniac: bah) Re^2: Question Marks in Subroutine Names
by crazyinsomniac (Prior) on May 08, 2002 at 10:40 UTC | |
by rob_au (Abbot) on May 08, 2002 at 13:11 UTC | |
|
Re: Re: Question Marks in Subroutine Names
by dug (Chaplain) on May 08, 2002 at 02:55 UTC |