SPUG: Can't use an undefined value as an ARRAY reference
Rizvi, Ali
rizvi at amazon.com
Wed May 18 12:11:25 PDT 2005
Data::Dumper is your friend for dumping complex data structure and seeing there content.
You can add something to this extent:
use Data::Dumper;
print Dumper $call;
print Dumper $call->result();
I hope this helps.
Ali
-----Original Message-----
From: spug-list-bounces at pm.org [mailto:spug-list-bounces at pm.org] On Behalf Of Medrano-Zaldivar, L E
Sent: Wednesday, May 18, 2005 11:50 AM
To: Can Subaykan; spug-list at pm.org
Subject: Re: SPUG: Can't use an undefined value as an ARRAY reference
List,
How can I see the value of the I'm receiving?
Thanks,
Luis
________________________________
From: Can Subaykan [mailto:cansubaykan at hotmail.com]
Sent: Wed 5/18/2005 12:45 PM
To: Medrano-Zaldivar, L E; spug-list at pm.org
Subject: RE: SPUG: Can't use an undefined value as an ARRAY reference
Hi Luis,
This means that $call->result() is giving you undef as its return value, but
you are expecting a reference to an array instead.
----Original Message Follows----
From: "Medrano-Zaldivar, L E" <LMedrano-Zaldivar at ciber.com>
To: <spug-list at pm.org>
Subject: SPUG: Can't use an undefined value as an ARRAY reference
Date: Wed, 18 May 2005 12:39:51 -0600
List,
This line of code:
my (@p) = $b->getRecentPosts(numposts=>20);
is giving me this error:
Can't use an undefined value as an ARRAY reference at
/usr/lib/perl5/site_perl/5.8.0/Net/Blogger/API/Core.pm line 199.
where the line 199 is this:
my @posts = ($call) ? (1,@{$call->result()}) : (0,undef);
But I cannot understand why is going on in here. Any idea what is going on
in here? or how can I fix this?
Thanks,
Luis
_____________________________________________________________
Seattle Perl Users Group Mailing List
POST TO: spug-list at pm.org
SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med
WEB PAGE: http://seattleperl.org/
_____________________________________________________________
Seattle Perl Users Group Mailing List
POST TO: spug-list at pm.org
SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med
WEB PAGE: http://seattleperl.org/
More information about the spug-list
mailing list