http://www.perlmonks.org?node_id=249207


in reply to Re^3: PDF::Create Questions
in thread PDF::Create Questions

I can't seem to get it right. I understand using the '>' to open a file to overwrite, but no matter how I try to make the syntax work, I fail.

How do I get from here

my $fh = new FileHandle "> $self->{'filename'}";
to here?

my $pdf = new PDF::Create ('filename' => '/html/mypdf.pdf', 'PageMode' => 'UseNone', );
Even trying this
my $pdf = new PDF::Create "> ('filename' => '/html/mypdf.pdf', 'PageMode' => 'UseNone', )";
and giving the pdf file 777 permissions doesn't work. Please help!

peppiv