Subject: | release_dates() return value appears incomplete |
Date: | Sun, 03 Feb 2008 20:23:28 -0600 |
To: | bug-IMDB-Film [...] rt.cpan.org |
From: | halcyon <halcyon22 [...] gmail.com> |
I've recently been working with IMDB::Film again, and noticed there are
a few new methods, two of which I've begun using. I'm having trouble
with the first, release_dates().
Using IMDB::Film 0.32
Running perl v5.8.6
On Linux kernel 2.4.24
My test script:
#!/usr/local/bin/perl -w
use strict;
use IMDB::Film;
my $film = new IMDB::Film(crit => "eternal sunshine of the spotless
mind", debug => 1)
or print "UNKNOWN ERROR";
if (defined($film->release_dates())) {
my @relDates = @{ $film->release_dates() };
for (@relDates) {
my ($country, $date) = each %$_;
print "country=$country\ndate=$date\n";
}
}
Output is attached. The last half consists of output similar to
country=country
date=USA
country=country
date=Australia
I also had a question about using language(). The doc on CPAN [1]
indicates usage as follows:
my @languages = $film->language();
however in the few tests that I've done, it appears that the first
element in the array is itself an array which contains a language
string. Can you describe how the structure should be interpreted?
Thanks very much for your work on this module!
Mike Partridge
[1] http://search.cpan.org/dist/IMDB-Film/lib/IMDB/Film.pm