SPUG: Can't use an undefined value as an ARRAY reference
Jay Scherrer
jay at scherrer.com
Wed May 18 14:10:45 PDT 2005
Try inserting a print statement before and after the variable in
question.
Jay Scherrer
On Wed, 2005-05-18 at 12:50 -0600, Medrano-Zaldivar, L E wrote:
> 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