good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Accessing main::Constantby Anonymous Monk |
on Dec 17, 2009 at 08:01 UTC ( [id://813154]=note: print w/replies, xml ) | Need Help?? |
I've a similar scenario to be addressed,
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?!
In Section
Seekers of Perl Wisdom
|
|