From:                   "$Bill Luebkert" <[EMAIL PROTECTED]>
> News Portal wrote:
> > Hi, I'm Dave.
> > I know you must be very busy, but I hope you can help me with this.
> > I migrated an app from Linux to Windows2000. Now, some of it runs
> > and access data from the original MySql database but some code
> > breaks, becase embeded in the produced html, there's an error
> > stating that some perl subroutine is using a variable that has no
> > assign value (sample code is at the bottom of this message).
> > 
> > My question is: is there a config parameter I can change (like in
> > PHP for error reporting) for ignoring (not displaying) warnings? I'm
> > a newbie with Perl and I've had this kind of problem with PHP but
> > solved with that error reporting param.
> 
> Absolutely the wrong thing to do - FIX THE ERRORS IN YOUR CODE!

While generaly I do agree in this case I'd simply add

        no warnings 'uninitialized';

to silence this particular warning. I think the "fixes" to silence 
this warning make unreadable code.

        if (defined $var and $var) { ... ???

Bleargh!

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to