Hi,
I have an Object variable referencing an array
if I then print the value with
i get
However if I then try to dereference the array with
I get
I'm confused! What am I doing wrong?
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I have an Object variable referencing an array
Code:
$self->{SUBS} = \@top10;
if I then print the value with
Code:
print $self->{SUBS};
which tells me it is an array reference.ARRAY(0x2b0e53c)
However if I then try to dereference the array with
Code:
print "Array Count = " . @$self->{SUBS};
Not an ARRAY reference
I'm confused! What am I doing wrong?
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts