in reply to Re^10: Using a sting with a variable name
in thread Using a sting with a variable name
Package variables are Perl4 left overs. The era predating strict. And lexicals. When Perl variables were much more like AWK or Shell.
And do get your capitalization right when it matters. perl cares, because perl is the implementation. But in the language, Perl, you can use any package variable you want, at any time*, without making any declaration you intent to use the variable.
*You may, however, be forced to use the fully qualified name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Using a sting with a variable name
by ikegami (Patriarch) on May 11, 2009 at 20:01 UTC | |
by JavaFan (Canon) on May 11, 2009 at 20:23 UTC | |
by ikegami (Patriarch) on May 11, 2009 at 20:25 UTC |