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

Can Subaykan cansubaykan at hotmail.com
Wed May 18 11:45:45 PDT 2005


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/




More information about the spug-list mailing list