App::Options 1.02
Sponsored Links
App::Options 1.02 Ranking & Summary
File size:
0.033 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
981
Date added:
2007-02-20
Publisher:
Stephen Adkins
App::Options 1.02 description
App::Options is Perl module to combine command line options, environment vars, and option file values (for program configuration).
SYNOPSIS
#!/usr/local/bin/perl
use App::Options; # reads option values into %App::options by default
# do something with the options (in %App::options)
use DBI;
$dsn = "dbi:mysql:database=$App::options{dbname}";
$dbh = DBI->connect($dsn, $App::options{dbuser}, $App::options{dbpass});
...
Get help from the command line (assuming program is named "prog") ...
prog -?
Option values may be provided on the command line, in environment variables, and option files. (i.e. $ENV{APP_DBNAME} would set the value of %App::options{dbname} by default.)
The "dbname" and other options could also be set in one of the following configuration files
$HOME/.app/prog.conf
$HOME/.app/app.conf
$PROGDIR/prog.conf
$PROGDIR/app.conf
$PREFIX/etc/app/prog.conf
$PREFIX/etc/app/app.conf
/etc/app/app.conf
with a file format like
[prog]
dbname = prod
dbuser = scott
dbpass = tiger
See below for a more detailed explanation of these and other advanced features.
App::Options combines command-line arguments, environment variables, option files, and program defaults to produce a hash of option values.
SYNOPSIS
#!/usr/local/bin/perl
use App::Options; # reads option values into %App::options by default
# do something with the options (in %App::options)
use DBI;
$dsn = "dbi:mysql:database=$App::options{dbname}";
$dbh = DBI->connect($dsn, $App::options{dbuser}, $App::options{dbpass});
...
Get help from the command line (assuming program is named "prog") ...
prog -?
Option values may be provided on the command line, in environment variables, and option files. (i.e. $ENV{APP_DBNAME} would set the value of %App::options{dbname} by default.)
The "dbname" and other options could also be set in one of the following configuration files
$HOME/.app/prog.conf
$HOME/.app/app.conf
$PROGDIR/prog.conf
$PROGDIR/app.conf
$PREFIX/etc/app/prog.conf
$PREFIX/etc/app/app.conf
/etc/app/app.conf
with a file format like
[prog]
dbname = prod
dbuser = scott
dbpass = tiger
See below for a more detailed explanation of these and other advanced features.
App::Options combines command-line arguments, environment variables, option files, and program defaults to produce a hash of option values.
App::Options 1.02 Screenshot
App::Options 1.02 Keywords
Options 1.02
Command line options
command line
program configuration
Perl module
option
values
options
program
environment
line
App::Options
AppOptions
App::Options 1.02
Libraries
Programming
Bookmark App::Options 1.02
App::Options 1.02 Copyright
WareSeeker periodically updates pricing and software information of App::Options 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of App::Options 1.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
صور بنات عاريات صور عرات صور سكس options
optionsxpress
stock options
value options
options trading
birth control options
what are stock options
options trading strategies
internet options
options express
options for youth
career options
options trading 101
options clearing corp
Computer configuration
options trading tutorial
Nonforfeiture Benefit (Option)
command line parameter
Related Software
Options.pm is a command-line option-parsing Perl module meant to imitate the syntax of the t.p.usage.Options module. Free Download
options is a small and simple library for parsing commandline options. Free Download
Tk::Optionmenu will let the user select one of some predefined options values. Free Download
Scriptalicious Perl module can make scripts more delicious to SysAdmins. Free Download
AutoOpts is an integrated part of AutoGen. Free Download
wmAppKill is a window maker dock app that lists all your running processes. Free Download
Statist is a small and portable statistics program written in C. Free Download
Getopt::Function is a Perl module to provide mixed options with help information. Free Download
Latest Software
Popular Software
Favourite Software