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

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

People
Owner:
STEPANOV [...] cpan.org
Requestors:
halcyon22 [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.15
Fixed in:
0.16



Subject: Error getting full plot
Using IMDB-Film-0.16 Running perl v5.8.6 On Linux kernel v2.4.24 My test script: #!/usr/bin/perl -w use IMDB::Film; my $film = new IMDB::Film(crit => "not another teen movie", debug => 1) or print "UNKNOWN ERROR"; my $fullplot = $film->full_plot; #eof The debug output: [DEBUG] CRIT: not another teen movie at ./simpleimdbtest.pl line 5 [DEBUG] Retrieving page from internet ... at ./simpleimdbtest.pl line 5 [DEBUG] URL is [http://www.imdb.com/find?tt=on;mx=20;q=not another teen movie]... at ./simpleimdbtest.pl line 5 [ERROR] Getting full plot ... at ./simpleimdbtest.pl line 8 Also there seems to be an error in the documentation. Film.pm line 640 lists the method as aka() which doesn't exist; this should probably be replaced with the actual method name, also_known_as(). One other thing I've noticed (which may be due to my relative inexperience with perl) is that when adding the lines: my @matched = @{ $film->matched() }; print "multiple matches\n" if scalar(@matched); For movies that have a single match, I get the error: Can't use an undefined value as an ARRAY reference at <matched() method call> Whereas the error does not appear when there are multiple matches. I believe the behavior for this method was different in v0.12 but I could be wrong; I haven't tried to use this method since developing my script based on v0.12. It looks like v0.16 was released just today, so thank you for the work you're putting into the module. When I noticed also_known_as() was added at some point since v0.12 I was interested because it will be useful for me.
From: Mike (halcyon22)
[guest - Wed Dec 14 21:26:32 2005]:
Show quoted text
> Using IMDB-Film-0.16 > Running perl v5.8.6 > On Linux kernel v2.4.24 > > My test script: > > #!/usr/bin/perl -w > > use IMDB::Film; > > my $film = new IMDB::Film(crit => "not another teen movie", debug => > 1) > or print "UNKNOWN ERROR"; > > my $fullplot = $film->full_plot; > #eof > > The debug output: > > [DEBUG] CRIT: not another teen movie at ./simpleimdbtest.pl line 5 > [DEBUG] Retrieving page from internet ... at ./simpleimdbtest.pl line > 5 > [DEBUG] URL is [http://www.imdb.com/find?tt=on;mx=20;q=not another > teen movie]... at ./simpleimdbtest.pl line 5 > [ERROR] Getting full plot ... at ./simpleimdbtest.pl line 8 > > Also there seems to be an error in the documentation. Film.pm line 640 > lists the method as aka() which doesn't exist; this should probably > be replaced with the actual method name, also_known_as(). > > One other thing I've noticed (which may be due to my relative > inexperience with perl) is that when adding the lines: > > my @matched = @{ $film->matched() }; > print "multiple matches\n" if scalar(@matched); > > For movies that have a single match, I get the error: > > Can't use an undefined value as an ARRAY reference at <matched() > method call> > > Whereas the error does not appear when there are multiple matches. I > believe the behavior for this method was different in v0.12 but I > could be wrong; I haven't tried to use this method since developing > my script based on v0.12. > > It looks like v0.16 was released just today, so thank you for the work > you're putting into the module. When I noticed also_known_as() was > added at some point since v0.12 I was interested because it will be > useful for me.
Thanks very much for the speedy fix Michael!
Date: Thu, 15 Dec 2005 17:19:13 +0200
From: Michael Stepanov <stepanov.michael@gmail.com>
To: bug-IMDB-Film@rt.cpan.org
Subject: Re: [cpan #16499] Error getting full plot
RT-Send-Cc:


On 12/15/05, Guest via RT <bug-IMDB-Film@rt.cpan.org> wrote:
Show quoted text

This message about IMDB-Film was sent to you by guest <> via rt.cpan.org

Full context and any attached attachments can be found at:
<URL: https://rt.cpan.org/Ticket/Display.html?id=16499 >

[guest - Wed Dec 14 21:26:32 2005]:

> Using IMDB-Film-0.16
> Running perl v5.8.6
> On Linux kernel v2.4.24
>
> My test script:
>
> #!/usr/bin/perl -w
>
> use IMDB::Film;
>
> my $film = new IMDB::Film(crit => "not another teen movie", debug =>
>    1)
>   or print "UNKNOWN ERROR";
>
> my $fullplot = $film->full_plot;
> #eof
>
> The debug output:
>
> [DEBUG] CRIT: not another teen movie at ./simpleimdbtest.pl line 5
> [DEBUG] Retrieving page from internet ... at ./simpleimdbtest.pl line
>    5
> [DEBUG] URL is [http://www.imdb.com/find?tt=on;mx=20;q=not another
>    teen movie]... at ./simpleimdbtest.pl line 5
> [ERROR] Getting full plot ... at ./simpleimdbtest.pl line 8
>
> Also there seems to be an error in the documentation. Film.pm line 640
>    lists the method as aka() which doesn't exist; this should probably
>    be replaced with the actual method name, also_known_as().
>
> One other thing I've noticed (which may be due to my relative
>    inexperience with perl) is that when adding the lines:
>
> my @matched = @{ $film->matched() };
> print "multiple matches\n" if scalar(@matched);
>
> For movies that have a single match, I get the error:
>
> Can't use an undefined value as an ARRAY reference at <matched()
>    method call>
>
> Whereas the error does not appear when there are multiple matches. I
>    believe the behavior for this method was different in v0.12 but I
>    could be wrong; I haven't tried to use this method since developing
>    my script based on v0.12.
>
> It looks like v0.16 was released just today, so thank you for the work
>    you're putting into the module. When I noticed also_known_as() was
>    added at some point since v0.12 I was interested because it will be
>    useful for me.


Thanks very much for the speedy fix Michael!

You are very welcome! Hope it'll work correctly :)




--
Best regards,
Michael Stepanov,
www.stepanoff.org


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.