dlind has asked for the wisdom of the Perl Monks concerning the following question:
And the output from when I try running the program as such: perl imdb.pl moviename ..1 #!/usr/bin/perl 2 3 use strict; 4 use IMDB::Film; 5 6 my $film = <>; 7 my $imdbobject = new IMDB::Film(crit => $film); 8 9 if($imdbobject ->status) { 10 print "Title: ".$imdbobject->title(). "\n"; 11 print "Year: ".$imdbobject->year(). "\n"; 12 print "Plot: ".$imdbobject->year(). "\n"; 13 } else { 14 print "Something went wrong"; 15 }
Any ideas? /DavidCan't open troy: No such file or directory at imdb.pl line 6. Film IMDB ID or Title should be defined! at imdb.pl line 7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IMDB::Film question
by toolic (Bishop) on Aug 02, 2010 at 19:52 UTC | |
by dlind (Initiate) on Aug 02, 2010 at 19:56 UTC | |
by runrig (Abbot) on Aug 02, 2010 at 20:09 UTC | |
|
Re: IMDB::Film question
by apl (Monsignor) on Aug 03, 2010 at 11:10 UTC |