Home  |  Linux  | Mysql  | PHP  | XML
From:Dr.Ruud Date:Sun Feb  7 12:41:37 2010
Subject:Re: variable scope
Eric wrote:

> I have a program that requests many config values from an ini file
> using Config::IniFiles. I import all of these values into my main::
> script but it's pretty ugly. Is there a way to import my value
> definitions int variables in a sub or another module and have them
> visible in the main:: scope as local variables.

Use a hash.

--
Ruud
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: Substitution question
Re: exit status
Using MQSeries module with Perl on Windows
Re: Perl script to monitor memory usage on unix box
Re: Perl script to monitor memory usage on unix box



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants