Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Question about returning array from sub

by QM (Parson)
on Jul 10, 2015 at 13:29 UTC ( [id://1134163]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-29 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found