in reply to Re^2: XML::Parser - Code Reference Error?
in thread XML::Parser - Code Reference Error?
my @array = (1, 2, 7, 10); my $array_ref = \@array; print $array[2]; # prints 7 print $array_ref->[2]; # prints 7 (difference is the -> )
bless basically means that it's not just a reference, it's a reference to an object of some class.
Read the documentation for Data::Dumper - it's a great tool to see how these complex data structures are built.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XML::Parser - Code Reference Error?
by awohld (Hermit) on Jun 10, 2005 at 06:11 UTC | |
by spurperl (Priest) on Jun 10, 2005 at 06:25 UTC | |
by holli (Abbot) on Jun 10, 2005 at 07:22 UTC |