Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://91131]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2018-01-17 02:28 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (195 votes). Check out past polls.