in reply to Accessing Other Globals?
It's because $foo::A_GLOBAL is equivalent to getting the scalar A_GLOBAL in the package foo (which of course does not exist).
update Now you're accessing an array A_GLOBAL in the package foo, not Foo. Perl is case sensitive, after all.
[ ar0n -- want job (boston) ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Accessing Other Globals?
by Foo::Bar (Acolyte) on Dec 15, 2001 at 02:53 UTC | |
by dragonchild (Archbishop) on Dec 15, 2001 at 02:56 UTC | |
by Foo::Bar (Acolyte) on Dec 15, 2001 at 03:05 UTC | |
by dragonchild (Archbishop) on Dec 15, 2001 at 03:16 UTC | |
by chip (Curate) on Dec 15, 2001 at 08:10 UTC | |
by tilly (Archbishop) on Dec 15, 2001 at 20:59 UTC | |
by tilly (Archbishop) on Dec 15, 2001 at 20:54 UTC | |
|
Re: Re: Accessing Other Globals?
by Foo::Bar (Acolyte) on Dec 15, 2001 at 02:42 UTC | |
by dragonchild (Archbishop) on Dec 15, 2001 at 02:51 UTC | |
by Foo::Bar (Acolyte) on Dec 15, 2001 at 02:58 UTC |