Perl API and error handling
Tue, 17 Feb 2004 10:57:53 -0800 (PST)
Generally I've never needed the return code for failing adds/sets. I'd
take a patch, though, if you need it.
I'm not sure $! is the best place, however. Perhaps
$memc->err / $memc->errstr like DBI?
On Fri, 13 Feb 2004, Joachim Bauernberger wrote:
> I was wondering how you guys trap errors in the perl API.
> If for example $memd->set or $memd->add fails it says that undef is retur=
> but will I know the reason for the failure (maybe in $!).
> perldoc Cache::Memcached does not mention this.
> Thanks & regards,
> Phone: +49 (0) 89 490 267 726
> Fax: +49 (0) 89 490 267 701
> Mobile: +49 (0) 179 674 3611
> mailto: firstname.lastname@example.org =A0 =A0 =A0 =A0
> Web: http://www.friendscout24.de