SPUG: Can't use an undefined value as an ARRAY reference

Dan Ebert mathin at mathin.com
Wed May 18 11:43:11 PDT 2005


I think it means that $call->result() is returning an undefined value.

Dan.
----------------------------------------------------------
Immigration is the sincerest form of flattery.
	- Unknown
----------------------------------------------------------


On Wed, 18 May 2005, Medrano-Zaldivar, L E wrote:

> 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/
>



More information about the spug-list mailing list