in reply to Re: Re: Scope Between global and my
in thread Scope Between global and my

Absolutely not! And I've illustrated a good use for it above.

However, I suppose it depends on whom you ask. Some people believe that since "global variables considered harmful" for other, more primitive languages, it applies to Perl as well. I disagree.

Global variables must be used with care, of course. But then, we should be careful in all our programming, no?

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.

  • Comment on Re: Re: Re: Scope Between global and my

Replies are listed 'Best First'.
Re: Re: Re: Re: Scope Between global and my
by SkipHuffman (Monk) on Apr 01, 2004 at 18:10 UTC

    Ok, that worked. But strict really hates it. I am trying to be a good little Perl coder and always use strict.