CC: | behanw [...] websterwood.com |
Subject: | TVDB::API bug? |
Date: | Fri, 31 Oct 2008 19:45:50 -0400 |
To: | bug-TVDB-API [...] rt.cpan.org |
From: | "Spencer McEwen" <mcewens [...] gmail.com> |
I'm really happy to have stumbled upon this API for a small project I'm
working. It's going to save a lot of time. I'm by no means a perl expert,
but I've come across something that I think should work that isn't. I'm
using TVDB::API 0.22 with Perl 5.8.8 on OS X 10.5. When I try
$tvdb->getSeasonBanner('Lost','3');
I get the error:
Can't use string ("seasons/73739-3-6.jpg") as an ARRAY ref while "strict
refs" in use at /Library/Perl/5.8.8/TVDB/API.pm line 259.
I can work around it by getting the first banner from getSeasonBanners()
like the following:
my @banners = $tvdb->getSeasonBanners('Lost',3);
my $banner_path = $tvdb->getBanner(@banners[0]);
I did have to force the DBM::Deep package installation due to errors during
'make test', but everything else appears to be working fine.