in reply to Re^3: Help! My variables are jumping off a cliff!
in thread Help! My variables are jumping off a cliff!
Yes, it's possible to do. I already knew that (and had, in fact, demonstrated it in my very first post.) That's not what I was asking about.
Because, you see, I have also shown that it can be, and usually is, an error - one so bad that it already has a name in common usage (variable suicide.) My contention is that errors of that sort need to be highlighted very strongly - and most other languages do so, generally by failing at compile time. Perl itself does nothing about it. In fact, even the additional warnings mechanism considers it a 'misc'-category warning; for example, using common::sense, which selects a "sensible set of warnings", eliminates that warning entirely.
You have re-demonstrated that it can be done. That's not the same thing as showing that it is useful - and even if it was... smoke alarms are installed in bedrooms and plane lavatories for a very good reason, one that the majority of us humans agree with: that it can do much more damage than any good that it prevents.
My contention is that this type of error should be taken much more seriously than it is, for that same reason.
-- I hate storms, but calms undermine my spirits. -- Bernard Moitessier, "The Long Way"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Help! My variables are jumping off a cliff!
by JavaFan (Canon) on Feb 26, 2012 at 22:29 UTC | |
by oko1 (Deacon) on Feb 27, 2012 at 00:50 UTC | |
by Your Mother (Archbishop) on Feb 27, 2012 at 01:22 UTC | |
by JavaFan (Canon) on Feb 27, 2012 at 08:45 UTC | |
Re^5: Help! My variables are jumping off a cliff!
by tobyink (Canon) on Feb 26, 2012 at 16:07 UTC |