vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
I go through some of the projects, there they used the variables of the package with fully qualified name, even though that package has been imported into the current package.
lets say,
use package_name;<br> $package_name::main::variablename=10;
It will be useful in case of if I have the same variable name in the current package which I included this package, Any other advantage is there? Is it the safe mode of accessing the package variables ?
Update :Title Updated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing the package variables by fully qualified name
by cdarke (Prior) on Jul 30, 2009 at 13:33 UTC | |
by Utilitarian (Vicar) on Jul 30, 2009 at 13:42 UTC | |
|
Re: Accessing the package variables by filly qualified name
by mzedeler (Pilgrim) on Jul 30, 2009 at 12:51 UTC | |
by vinoth.ree (Monsignor) on Jul 30, 2009 at 13:00 UTC | |
by mzedeler (Pilgrim) on Jul 30, 2009 at 13:08 UTC | |
by vinoth.ree (Monsignor) on Jul 30, 2009 at 13:19 UTC | |
by mzedeler (Pilgrim) on Jul 30, 2009 at 13:30 UTC | |
|
Re: Accessing the package variables by fully qualified name
by Anonymous Monk on Jul 31, 2009 at 02:35 UTC |