Posted on 2005-08-04 19:37:28-07 by auroraes
uninitialized value errors

Greetings,

I have a perl scripts that sends PDF files to the printer. I keep getting these errors. The script is cron'd so these lines keep appearing in the message being sent to the user the script runs as until the mail spool fills up the partition. The PDF exists and has content. It doesn't happen everytime, only periodically. When I run the script manually, everything runs smooth.

[Thu Aug 4 11:01:38 2005] results_send.pl: Use of uninitialized value in subtraction (-) at /usr/local/lib/perl5/site_perl/5.8.2/Net/Printer.pm line 779.
[Thu Aug 4 11:01:38 2005] results_send.pl: Use of uninitialized value in addition (+) at /usr/local/lib/perl5/site_perl/5.8.2/Net/Printer.pm line 780.

I am running perl 5.8.2 on FreeBSD 4.9. Net:Printer 1.03. Any help would be appreciated.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.