On Jan 11, 1:16 pm, [EMAIL PROTECTED] (Kevin Zembower) wrote:

> $type eq "unknown" ? $type="human" : $type="both";

You're trying to use the trinary like you would an if-then-else.  You
want to instead use it in an assignment:

$type = ($type eq 'unknown') ? 'human' : 'both';


--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to