Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

most useless error message in the world - PDF::Create

Status
Not open for further replies.

jez

Programmer
Apr 24, 2001
370
VN
Code:
Can't use an undefined value as a symbol reference at /lib/PDF/Create.pm line 56.


I am trying to create a PDF.
I have tested my basic script and now i am trying to modify to my needs. I have changed the path to where to put the PDF to another folder in the same parent, so i know what is causing the error, however i have no idea what to do with this error or how to remove it.

Code:
my $newfilenamepath = "/htdocs/webrequisition/webreq_pdf/";
became
Code:
my $newfilenamepath = "/htdocs/webrequisition2/webreq_pdf/";

These folders are there and it is a windows machine so permissions should not be causing a problem.

Sorry to sound like a baby throwing their toys out of the pram, but this is an odd situation, where i know what causes the error, but the error is not telling what is wrong or how to change it.

Thanks for any suggestions.

Recently i have been using lots of libraries in lots of languages, and they are good, until it throws an error referencing a line in a library rather than in your code, then they become very cryptic and difficult to work with.
 
If you're using an absolute path on Windows, shouldn't there be a drive letter involved? Using / like that implies the root of the current drive that the script is being run from. That might not be an issue if the script is on the same drive, but it's something to keep in mind for future reference.

-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog
 
Yes, there is a drive letter however i removed the path when i posted just so i dont give away the server config.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top