When you say you're thinking that the ternary operator functions like (test) ? true : false you are correct. But what I see is a possible problem with your test...
Er. Never mind me, I'm waiting for dinner to finish, and I'm starving, and so I completely misread the code. That's my story, and I'm sticking to it.
In reply to Re: Confused by Perl ternary operator
by Nkuvu
in thread Confused by Perl ternary operator
by newest_newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |