in reply to Re^3: Accessing main::Constant
in thread Accessing main::Constant
I've a hash in the pl file, which I need access it from a module. when Instead of using like $main::VAR->{a}->{b} everytime, Instead I wanted to make it($main:VAR) as a constant and When I need to do that operation, I will be calling it like CONSTANT->{a}->{b}.
Am I doing it right?!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Accessing main::Constant
by desemondo (Hermit) on Dec 17, 2009 at 08:49 UTC | |
by BrowserUk (Patriarch) on Dec 17, 2009 at 19:44 UTC |