The parens fix is easy to see. But the '+'? Is it that the compiler seeks something to add to void? And than encounters the ternary? Alternatively, if my list-context-gut-feeling ;-) is correct, it would force a scalar context to the $foo==1, preventing the print's greedy behavior. In that cause, the '+' could be replaced by a '.', isn't it?
Cheers,
Jeroen
"We are not alone"(FZ)
In reply to Re: (tye)Re: If / elses
by jeroenes
in thread If / elses
by mbond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |