> what's the difference between:
>
> $::MY_VARIABLE
Global variable - stored in main's symbol table.
> and
>
> my $MY_VARIABLE
Lexically scoped variable - not available outside the scope.
> if they're both declared in main()?!
You need to know
on Fri, 19 Apr 2002 00:05:58 GMT, [EMAIL PROTECTED] (Pradeep Sethi)
wrote:
> Obviously they're treated differently by perl because $::MY_VARIABLE
> does not equal $MY_VARIABLE.
$::MY_VARIABLE is a shorthand for $main::MY_VARIABLE, which is a (global)
package variable.
A variab
what's the difference between:
$::MY_VARIABLE
and
my $MY_VARIABLE
if they're both declared in main()?!
Obviously they're treated differently by perl because $::MY_VARIABLE does
not equal $MY_VARIABLE.
anyone?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi