This queue is for tickets about the IMDB-Film CPAN distribution.

Report information
The Basics
Id:
32904
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
halcyon22 [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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
Bug with release_dates() was fixed in the version 0.33. Regarding the language(). It returns a reference on array with languages: my @languages = @{ $film->language() }; or my $languages = $film->language(); Will fix documentation in the next release. -- Best Regards, Michael Stepanov, Senior Software Developer
Bug with release_dates() was fixed in the version 0.33. Regarding the language(). It returns a reference on array with languages: my @languages = @{ $film->language() }; or my $languages = $film->language(); Will fix documentation in the next release. -- Best Regards, Michael Stepanov, Senior Software Developer


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.