|P is for Practical|
Re^2: print one row of arrayby QM (Parson)
|on Jun 10, 2004 at 00:05 UTC||Need Help??|
By one definition, arrays in Perl are only one dimensional, so there is only one row (or column) to print.
For instance, examining a 2D array in the debugger gives:
This shows, for instance, that $x is an array reference (ARRAY(0x15d5240)), and points to an array equivalent to qw(a b c).
To print a single row of a multidimensional array, you must first define which is the row index.
For the first index, this works:
If you need something more general, speak up.