The problem I'm having is when I run it against the dvdlist.txt file which looks like this.use IMDB::Film; $inputfile="dvdlist.txt"; $outputfile="dvdlist.csv"; open(INFILE,"$inputfile") or die("Couldn't open $inputfile\n"); open(OUTFILE,">$outputfile") or die("Couldn't open $outputfile\n"); @DVDS=<INFILE>; close (INFILE); foreach $line (@DVDS) { print "$line"; $imdbObj = new IMDB::Film(crit => "$line"); print OUTFILE "Title: ".$imdbObj->title()."\n"; print OUTFILE "Year: ".$imdbObj->year()."\n"; print OUTFILE "Plot Symmary: ".$imdbObj->plot()."\n"; }
it gives me an out put like thisShaun Of The Dead Halfbaked aliens
So it process the first title but it looks like the loop is not working for the others..any suggestions?Title: Shaun of the Dead Year: 2004 Plot Symmary: A man decides to turn his moribund life around by winnin +g back his ex-girlfriend, reconciling his relationship with his mothe +r and dealing with an entire community that has returned from the dea +d to eat the living. Title: Year: Plot Symmary: The story of three not so bright men who come up with a +series of crazy schemes to get a friend out of jail. Title: Year: Plot Symmary: The planet from Title: Year: Plot Symmary: Naive young Mormon Joe Young is recruited to act in porn + movies.
In reply to Loop with IMDB::Film by Codyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |