in reply to How do create a variable in another package in Perl?

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

  • Comment on Re: How do create a variable in another package in Perl?