go ahead... be a heretic | |
PerlMonks |
Re: ternary conditional helpby BillKSmith (Monsignor) |
on Nov 29, 2016 at 03:59 UTC ( [id://1176765]=note: print w/replies, xml ) | Need Help?? |
The operator is intended to return a single value. Attempting to get side effects is a bad idea even if you succeed. Here is how to get the result you desire.
Bill
In Section
Seekers of Perl Wisdom
|
|