in reply to Re^2: The default hash - accident, coincidence or conspiracy?
in thread The default hash - accident, coincidence or conspiracy?
I don't understand why people think it's asking for trouble.
IMO, using package variables in one's code, in general, is asking for trouble (though there may be situations in which one is willing to accept this trouble). Moreover, as I pointed out, some module authors have had the bright idea of using variables such as %_, so one can't be sure that these variables are completely available, and that the other code that uses it is being good about using local whenever it uses the same variables. IMO, having to even worry about these things falls into the category of "trouble." The fact that the docs specifically state that the variables the OP asked about are reserved for Perl's use makes it all the more troublesome to use them.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The default hash - accident, coincidence or conspiracy?
by jdporter (Paladin) on Jul 02, 2005 at 22:39 UTC | |
by tlm (Prior) on Jul 02, 2005 at 23:53 UTC |