Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > App::Options: doesn't option_file work?

Thread Tools

App::Options: doesn't option_file work?

Posts: n/a
I use App::Options to manage the configuratio of my program. The main
program name is and the cofiguration file main.conf.
Everything works fine for if main.conf is present, its
content is used to configure

Other than, I want another program to share the main.conf
configuration file: I want to use main.conf configurations.

I inserted this into

use App::Options (
option => {
option_file => "main.conf",
dbname => { default => 'campeggio', },
dbserver => { default => 'localhost', },
printer => { default => 'PDFCreator'},
debug => { default => 0, },

but, no way. doesn't use the main.conf information.
Everything works if I copy main.conf to second.conf file. I don't want
to have two separate but identical files for configurations so I'd
want to use main.conf.

What I have to do?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off