Keep It Simple, Stupid | |
PerlMonks |
Re: Question about ternary conditionby fmerges (Chaplain) |
on Jun 28, 2005 at 10:13 UTC ( [id://470555]=note: print w/replies, xml ) | Need Help?? |
Hi, Take a look at perlop, here you'll get explained the ternary operator and a indication for what is goind wrong here. The code really says this:
And the result of the ternary operator is an assignable value so that it gets to: $result = 'KO'With this, it works well
Regards, :-)Update: Losed too much time to answer, so it was already answered... next time ;-)
In Section
Seekers of Perl Wisdom
|
|