NeoPerl has asked for the wisdom of the Perl Monks concerning the following question:
Now is there any way this behaviour be altered in such a way that
1) By default all the variables have local scope (no need of my()).
2) We should be able to use a keyword (say global()) to declare a variable having global scope() ?
I have seen Perl to be a flexible language with everything else, so I expect there must be some way to do this too. But which?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Default Scope Behaviour
by dchetlin (Friar) on Jan 01, 2001 at 06:54 UTC | |
|
Re: Default Scope Behaviour
by Dominus (Parson) on Jan 01, 2001 at 02:06 UTC | |
by NeoPerl (Acolyte) on Jan 01, 2001 at 02:26 UTC | |
|
Re: Default Scope Behaviour
by epoptai (Curate) on Jan 01, 2001 at 20:53 UTC | |
by NeoPerl (Acolyte) on Jan 01, 2001 at 23:23 UTC | |
by tilly (Archbishop) on Jan 01, 2001 at 23:43 UTC | |
|
Re: Default Scope Behaviour
by coreolyn (Parson) on Jan 01, 2001 at 00:55 UTC |