[NTLUG:Discuss] Perl problem
rp8034l
rp8034l at flash.net
Fri May 16 16:42:27 CDT 2014
Greetings:
I am looking for assistance with a Perl problem.
When I run the attached program, it abnormally terminates and I get the
following error message:
$ perl sample.pl
Could not find file for 'example.pdf' at \
/usr/local/share/perl5/load.pm line 214.
Best I've been able to determine is that adding the "use Thread::Pool"
statement appears to cause the "PDF::API2" module to fail...
Any ideas would be appreciated!
RichardP
- - - - - - - - - - - - - - - - -
System configuration
- - - - - - - - - - - - - - - - -
Resource Version
---------------- --------
Fedora 17 x86_64 kernel 3.9.10-100.fc17.x86_64
perl This is perl 5, version 14, \
subversion 4 (v5.14.4) built for \
x86_64-linux-thread-multi
PDF::API2 2.021
Thread::Pool 0.33
- - - - - - - - - - - - - - - - -
*** sample.pl ***
- - - - - - - - - - - - - - - - -
#!/bin/perl -w
use strict;
use warnings;
use PDF::API2;
# Uncomment the following line and program will fail!
#use Thread::Pool;
my $page;
my $pdf;
# Create a PDF file with one (blank) page in it
$pdf = PDF::API2->new(-file => 'example.pdf');
$page = $pdf->page();
$pdf->save();
print "Done!\n";
exit 0;
- - - - - - - - - - - - - - - - -
More information about the Discuss
mailing list