in reply to perlcaller.pl

Why do you use TRUE and FALSE constants? Perl already has some sense of true and false ("", "0", 0 and undef are false, all other values are true).
If you ever need a representation in terms of 1 or 0, just use ?:.
$foo ? 1 : 0;
(Or the more evil !!$foo || 0 :))

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Replies are listed 'Best First'.
Re: Re: perlcaller.pl
by jryan (Vicar) on Jan 22, 2002 at 01:56 UTC
    While you are correct, (and I ++'ed ya), perhaps he is more familiar with another programming language where those constants do exist (such as java)? You have to admit that it does make the program easier to read, and easier to maintain for a non-native perl programmer. Thats not to say I'd do it myself, but if it helps Dave write code that he is more comfortable with, why not? TIMTOWTDI, right? :)