in reply to Re: how to read conf file in perl script
in thread how to read conf file in perl script

even worse news, that file is not valid perl, so that won't work.
  • Comment on Re^2: how to read conf file in perl script

Replies are listed 'Best First'.
Re^3: how to read conf file in perl script
by ph0enix (Friar) on Oct 20, 2009 at 08:15 UTC
    Cange your config file to a module - eg.
    package MyApp::Config; our $a = 1000; our $b = "test"; our $c = 2000; our $d = "test2"; 1;
    Then you can load it with use MyApp::Config; and access variables in following way $MyApp::Config::c.