in reply to -w considered harmful
Tada... Actually IIRC some feel that warnings is harmful. I never use it personally, for one it's not available everywhere, also it's not symmetric with -T; but then again strict isn't with -w. UPDATE: Although I believe the need to squelch warnings in this manner rather rare.#!perl -w { local $^W = 0; }
Basically I wanted to say that -w is evil. It causes code that shouldn't generate warnings to generate meaningless warnings that the author never intended it to.Isn't that the point? Catch things you didn't intend?
--
perl -pew "s/\b;([mnst])/'$1/g"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: -w considered harmful
by demerphq (Chancellor) on Sep 03, 2002 at 19:06 UTC | |
by Aristotle (Chancellor) on Sep 04, 2002 at 02:57 UTC | |
by belg4mit (Prior) on Sep 03, 2002 at 19:09 UTC | |
by Anonymous Monk on Sep 03, 2002 at 23:55 UTC | |
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 19:38 UTC | |
|
Re: Re: -w considered harmful
by demerphq (Chancellor) on Sep 04, 2002 at 09:38 UTC | |
by belg4mit (Prior) on Sep 04, 2002 at 15:29 UTC | |
by demerphq (Chancellor) on Sep 04, 2002 at 16:10 UTC |