in reply to Unique variable names & 'strict vars'
You can still do the use vars trick, you just have to change packages when you do it:
Substitute whatever package you started from for main.package CONFIG; use vars '$foo'; package main;
The most radical approach I've seen for this is in Slashcode, which sets up a WARN handler that eats any message starting with the string "Possible typo". TIMTOWTDI, although that's a little overkill for my taste....
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unique variable names & 'strict vars'
by vladb (Vicar) on Dec 20, 2001 at 06:33 UTC |