Getopt::JanusGetopt::Janus is Perl module which can get program options via command-line or via a GUI. | |
Download |
Getopt::Janus Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sean M. Burke
- Publisher web site:
- http://search.cpan.org/~sburke/
Getopt::Janus Tags
Getopt::Janus Description
Getopt::Janus is Perl module which can get program options via command-line or via a GUI. Getopt::Janus is Perl module which can get program options via command-line or via a GUI.SYNOPSIS use strict; use Getopt::Janus; string my $title, '-t', 'Document title'; $title = "Stuff"; yes_no my $errata, "-e", "--errata", "Append errata section"; file my $in, "-i", "--in", "Input data file"; $in = "thing.dat"; new_file my $out, "-o", "--out", "Output data file"; $out = "oute.txt"; new_file my $out2, "-l", "--lex", "Other output data file"; $out2 = "lexe.dat"; choose my $mode, '-m', '--mode', "What processing mode", from => ; yes_no my $crunchy, "-c", "--crunchy", "Whether to do it crunchily"; license_either; run &main, "Example program", # title "This example just shows off all the widgets", # description ; sub main { # Code that deals with $title, $mode, etc... ## This is where all the main work ## ## of your program should happen. ## return; } Requirements: · Perl
Getopt::Janus Related Software