in reply to Using CAM::PDF module to read the pdf content
You should use strict;. That way, Perl would tell you that you are missing quotes in your construction call to CAM::PDF->new:
# my $pdf = CAM::PDF->new(test.pdf); # should be my $pdf = CAM::PDF->new("test.pdf");
But you never check whether your call to CAM::PDF->new is successful, so you should do that as well:
my $pdf = CAM::PDF->new("test.pdf") or die "Couldn't read PDF 'test.pdf'";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |