Getopt::Param

Getopt::Param contains an param() style opt handling.
Download

Getopt::Param Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Muey
  • Publisher web site:
  • http://search.cpan.org/~dmuey/

Getopt::Param Tags


Getopt::Param Description

Getopt::Param contains an param() style opt handling. Getopt::Param contains an param() style opt handling.SYNOPSIS use Getopt::Param; my $prm = Getopt::Param->new(); print_help_and_exit() if $prm->get_param('help'); # --help, see 'help_coderef' new() key $log->debug( "Start: $$ " . time() ) if $prm->get_param('debug'); # --debug print "Starting process...n" if $prm->get_param('verbose'); # --verbose do_this(); do_that() if that_is_needed() || $prm->get_param('force'); # run this regardless if --force do_theother() if $prm->get_param('theother'); # --theother print "...Done!n" if $prm->get_param('verbose'); # --verbose $log->debug "End: $$ " . time() ) if $prm->get_param('debug'); # --debug $lang->say(q{User '' has been setup with the name ''}, $prm->param('user'), $prm->param('name')); # --user=dan --name="Dan Muey"Parses an array and gives it a CGI-like param interface to the data. You can then have apps that have a cgi interface and a cli interface that just call param() to get its stuff.Examples: Opt: --force=1 URI Equiv: force=1 Opt: --force= URI Equiv: force= Opt: --force URI Equiv: force=--force Opt: --force=hello URI Equiv: force=hello Opt: --force="hello world" URI Equiv: force=hello+world Opt: --force=a --force=b URI Equiv: force=a&force=bRequirements:· Perl· Class::Std· Class::Std::Utils· Locale::Maketext::Pseudo Requirements: · Perl · Class::Std · Class::Std::Utils · Locale::Maketext::Pseudo


Getopt::Param Related Software