in reply to Re: Question about returning array from sub
in thread Question about returning array from sub

The Dumper output may be more intuitive if it is passed a reference to the array:
say Dumper \@a;

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: Question about returning array from sub
by ojagan (Novice) on Jul 10, 2015 at 13:33 UTC
    This is output of the Dumper -
    $VAR1 = [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, '1' ] ]; $VAR1 = [ [ '0.99985288395361', '-0.0139786208260096', '0.00994025198128738' ], [ '0.0138118911491265', '0.999766001562737', '0.0166485369370161' ], [ '-0.0101706495630081', '-0.0165087939917233', '0.999811991130535' ] ];
      Yes! That's how I expect a 2D array reference to dump. Is that what you expect?

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

      The output is as expected here.