I have seen several times this syntax (ref($row) ? @$row : $row) but I was not aware how it was operating. So I looked it up and I found ternary operator ? it was so simple [condition] ? [true expression] : [false expression].
Thank you for time and effort.
|Replies are listed 'Best First'.|
Re^3: How to print an array of multidimensional arrays with a for or foreach loop
by ikegami (Pope) on Aug 11, 2014 at 01:46 UTC
by tobyink (Abbot) on Aug 11, 2014 at 08:02 UTC