Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Warning while using ternary operatorby mward (Initiate) |
on Dec 17, 2013 at 11:46 UTC ( [id://1067458]=note: print w/replies, xml ) | Need Help?? |
If what you really want is:
Then one way to achieve this is:
Executing "0" does not give a warning, unlike executing 'nothing'.
In Section
Seekers of Perl Wisdom
|
|