Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Weird Warning

by srawls (Friar)
on Jun 25, 2001 at 02:22 UTC ( #91131=note: print w/ replies, xml ) Need Help??


in reply to Re: Weird Warning
in thread Weird Warning

I didn't want to use the weenie method and localize the warning variable to stop this warning; what is the correct way to fix this?

Mabey you aren't using a variable, but I think this isn't in the spirit of what the poster wants.

The 15 year old, freshman programmer,
Stephen Rawls


Comment on Re: Re: Weird Warning
Re: Re: Re: Weird Warning
by Aighearach on Jun 25, 2001 at 02:38 UTC

    Maybe it is, maybe it isn't, but it is the best way to do it. The only other things you can do are add lots of tests or turn off all warnings. Lots of tests can be clunky, and no warnings at all means you have to keep the code locked in the basement where nobody can see it. ;)

    But, most of the complaints about the old way of turning off warnings aren't relevant to the new pragma. It _is_ bad to be messing with localized vars to control the compiler or interpreter. It got the job done, but I'm sure happy for the warnings pragma and filehandles as objects... it lets me throw local out of my box altogether.
    --
    Snazzy tagline here

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://91131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-04-17 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls