I found what I believe to be a bug in the constructor:
new()
Object's constructor. You should pass as parameter movie title or IMDB code.
my $imdb = new IMDB::Film(crit => <some code>);
or
my $imdb = new IMDB::Film(crit => <some title>);
Consider the movie titled "300" year 2006
$film = new IMDB::Film(crit => '300', year => '2006');
It should return this movie.
http://www.imdb.com/title/tt0416449/
Instead it returns this movie:
http://www.imdb.com/title/tt0000300/
I propose another 2 parameters:
"title" and "id"
$film = new IMDB::Film(title => '300', year => '2006');
or
$film = new IMDB::Film(id => 'tt0416449');
--
Best Regards,
Michael Stepanov,
Senior Software Developer