The right way is to don't! :) See
Config::Config{osname} and Config{osname}
Tutorials: Variable Scoping in Perl: the basics, Coping with Scoping
every page with keyword "namespace" in Modern Perl Book
In reply to Re: How do create a variable in another package in Perl?
by Anonymous Monk
in thread How do create a variable in another package in Perl?
by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |