Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Strict, my and warnings

by demerphq (Chancellor)
on Oct 16, 2002 at 19:23 UTC ( [id://205811]=note: print w/replies, xml ) Need Help??


in reply to Re: Strict, my and warnings
in thread Many strings make one variable?

I never need to switch off warnings anywhere,

Interesting. There a bunch of modules that I routinely use that produce warnings under -w. In fact I spent a day trying to figure out what I was doing wrong, only to realize that my colleague had slipped a -w into the script and that nothing was wrong. (Win32::Eventlog is the latter mentioned module)

Personally I think that the late introduction the warnings modules and its consequent slow takeup and usage was one of the few serious language errors that was made in the earlier versions of perl. (Strong words I know, but im entitled to an opinion :-)

I suspect that perl6 will have a quite powerful warning and strictures structure from the get-go as a lesson learned from this.

--- demerphq
my friends call me, usually because I'm late....

Replies are listed 'Best First'.
Re^3: Strict, my and warnings
by Aristotle (Chancellor) on Oct 17, 2002 at 00:30 UTC

    Slap the module author(s) on the wrist. Lexically disabling warnings will work under -w and of course you can localize $^W as we used to do. So I don't see any excuse not to take the proper action to disable them as needed if you're intentionally doing something that may raise warnings. My take on this is fairly rigid. There are times that call for not complying with warnings or strict, but you should at least have the decency not to force that choice unto whoever is using your code as well.

    File a bug report or complain to the author by email.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found