in reply to Re: How to print an array of multidimensional arrays with a for or foreach loop
in thread How to print an array of multidimensional arrays with a for or foreach loop
Hello ikegami,
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.
Seeking for Perl wisdom...on the process of learning...not there...yet!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to print an array of multidimensional arrays with a for or foreach loop
by ikegami (Patriarch) on Aug 11, 2014 at 01:46 UTC | |
by tobyink (Canon) on Aug 11, 2014 at 08:02 UTC |
In Section
Seekers of Perl Wisdom