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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF::API2 and HTML::MASON 2

Status
Not open for further replies.

philote

MIS
Oct 2, 2003
861
US
For some reason, PDF::API2 generates this warning:
Possible precedence problem on bitwise & operator at /usr/lib/perl5/site_perl/5.8.0/PDF/API2/PDF/Pages.pm line 292
That's not a problem normally, but Mason gives an error when compiling my component because of this:
Error during compilation of /path/to/my/component.mas:
Possible precedence problem on bitwise & operator at /usr/lib/perl5/site_perl/5.8.0/PDF/API2/PDF/Pages.pm line 292.
So I'd either like to find a way to fix PDF::API2 or keep Mason from dying when it gets a warning. But if I have to I'll continue using PDF::Create.

 
could you turn warnings off just before abd then turn them back on just after the offending line?

you have to do it like this though

{
no warnings;
# this is the offending line
}


Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Thanks Mike! That did the trick. I turned off warnings on the offending line in the module that was giving those warnings. I had actually tried this before by doing something like:
Code:
local $^W = 0;
Maybe I did something wrong or maybe that only works in older version of Perl because it didn't work for me. But using 'no warnings' did the job.

 
VB has a place in society ...

Mike, a * 4 u
--Paul (*grins*)
 
Well - thank you Paul, but VB?

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
on error goto 0

or it could be vistoria bitter, a nice amber nectar from the antipodeans

--Paul


It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
on error goto 0"

:) showing your age Paul, isn't it

on error ignore

nowadays? Not that I know.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
its all a bit of larf reelly
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
larf"..... You in the UK Paul?

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Naas, Co Kildare
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top