On Tue, 2008-08-12 at 03:00 +0100, Dermot wrote:
> I was struggling with this before I left work. In a line like
> print "Starting with ", $self->[0]->{type},"\n";
> 
> I got
> 
> Starting with HASH(x0023408)
> 
> Not what as I was hoping for. Perhaps I was calling it correctly.
> 

You are calling it correctly and that is the correct result.  To see
inside a variable, use the debugger or Data::Dumper.  Example:

  use Data::Dumper;
  print "Starting with ", Dumper $self->[0]->{type};

See `perldoc Data::Dumper` for details.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to