Think about Loose Coupling | |
PerlMonks |
Re: Conditional Operator Confusionby Herkum (Parson) |
on Nov 29, 2006 at 13:17 UTC ( [id://586687]=note: print w/replies, xml ) | Need Help?? |
Try this instead,
Ah, I just noticed that you had tried that in your second example. The real issue that you had was that you were trying to treat a trinary operator like an if-else statement. I have tried that before and it just don't work! :)
In Section
Seekers of Perl Wisdom
|
|