[ed.]-Sx- wrote: Undef is a valid condition in Perl Yes or No?
No. Can undef ever be true? If not, it necessarily is false, which means it is not an independent "condition".
The closest you could get would be "0 but true" but then you are still only close (and not close enough)...
Agreed. The point of my $test = 0 was that in THAT test ZERO (0) was true...
IE - 'what' I wanted to test for...
my $test = 0;
($test) ? print "\$test exists" : ($test > 0) ? print "\$test greater then zero" : ($test < 0) ? print "\$test less then zero" : print "\$test is zero";
I need the other sections to deal with it if it is higher or lower...
Not everything MUST fit into 0 is false 1 is true. Personally I am abandoning this thread - I ran out of Ol' Grand Dad...
-Sx-
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>