"Oleg V. Volkov" <[EMAIL PROTECTED]> wrote:
[skip]
> Speaking of globals, AFAIK, I have virtually no drawbacks
> against "my", as long as I use "our" variables inside
> the scope. So what's bad there in using "our"?

After some thinking I've found a scenario where Alias::attr
use of globals can give some not immideately obvious results:
if you use it for recursive function and do not pass all the
fields, some variables named after keys that are absent in
current call will be still initialized from previous. This
won't matter with, say, object, which uses restricted hash
or otherwise explicly initializes all the hash fields on
creation, but this may easily mess up recursive function
with named parameters.

-- 
Oleg "Rowaa[SR13]" V. Volkov

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to