Re: dereferencing an object

2016-11-08 Thread derrick
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 +, Chas. Owens wrote: > On Tue, Nov 8, 2016 at 5:38 AM wrote: > > > Hi, > > > > Yes, I was using a ref with my dumper. When i don't do that I don't get > > $

Re: dereferencing an object

2016-11-08 Thread Chas. Owens
On Tue, Nov 8, 2016 at 5:38 AM 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

Re: dereferencing an object

2016-11-08 Thread derrick
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}; say '$name'. $name; The error is: Not a SCALAR reference at todoist.pl line 79. but it should

Re: dereferencing an object

2016-11-07 Thread Uri Guttman
On 11/07/2016 10:55 PM, derr...@thecopes.me wrote: I have an object that I am receiving from LWP::UserAgent::Post that looks like the below, there is more but this is the important part. Am I correct in saying this is an array of hashes in a hash? I want to get some of the values of the 0 eleme