ok, Thank you for that. I was misunderstanding what the -> represented.
It is working now.

Derrick

On Tue, Nov 08, 2016 at 11:29:41AM +0000, Chas. Owens wrote:
> On Tue, Nov 8, 2016 at 5:38 AM <derr...@thecopes.me> wrote:
> 
> > Hi,
> >
> > Yes, I was using a ref with my dumper. When i don't do that I don't get
> > $VAR1 = \{ .
> > I am still getting an error when I dereference.
> >
> >     my $name = ${$hash_ref_decode}->{items}[0]{content};
> 
> snip
> 
> This says dereference $hash_ref_decode as a scalar then dereference that
> value as a hash.  Your dumper output (and the name of the variable) seems
> to show that $hash_ref_decode holds a hashref.  In this case, you should
> probably say
> 
> my $name = $hash_ref_decode->{items}[0]{content};

-- 
Derrick Cope

--from my mutt

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to