in reply to IMDB::Film question
As a follow-up to the answer toolic gave you, you might replace
print "Something went wrong";
with
print "Something went wrong loading '$film'";
print "Something went wrong";
with
print "Something went wrong loading '$film'";
That way, you'll be able to see typos, wrong path names, the fact that the path was null, etc.
In Section
Seekers of Perl Wisdom