Main > Programming > Libraries >

Getopt::GetArgs 1.03

Getopt::GetArgs 1.03

Sponsored Links

Getopt::GetArgs 1.03 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 926
Date added: 2007-04-11
Publisher: Rob Brown

Getopt::GetArgs 1.03 description

GetArgs is a Perl module to allow enhanced argument passing, including passing of case-insensitive named arguments as well as positioned arguments.

SYNOPSIS

sub WHATEVER {
my @DEFAULT_ARGS =
( Content => "Default content",
Verbose => 0
);
my %ARGS=GetArgs(@_,@DEFAULT_ARGS);
# do some stuff with $ARGS{Content}
# show all kinds of detail if $ARGS{Verbose}
}

# a simple call to WHATEVER
WHATEVER( "Just deal with my content" );

# a flexible call to WHATEVER
WHATEVER({ verbose => 1,
content => "This is my content",
});

GetArgs needs to know * what your subroutine was passed, * and what it expected to be passed. * If you like, you can also supply default values to use when an argument is not passed.

Using this information, GetArgs will create a hash of arguments for you to use throughout your subroutine. Using GetArgs has several advantages:

1) Calls to your subroutine can pass named arguments, making the code more readable.
2) If its easier to pass a list of arguments as you normally would, thats fine.
3) With GetArgs your use of arguments in your subroutine code is more readable.
4) Your subroutines are no longer limited in the number of arguments they expect.
5) Arguments can be passed in any order (if passed inside the hash ref), thus only the arguments relevant to that call need to be passed--unnecessary arguments can be ignored.
6) Case is not important, as GetArgs matches argument names case insensitively.

Getopt::GetArgs 1.03 Screenshot

Advertisements

Getopt::GetArgs 1.03 Keywords

Bookmark Getopt::GetArgs 1.03

Hyperlink code:
Link for forum:

Getopt::GetArgs 1.03 Copyright

WareSeeker periodically updates pricing and software information of Getopt::GetArgs 1.03 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 Getopt::GetArgs 1.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Getopt::ExPar contains extended parameters command line parser. Free Download
Getopt::Tabular is a Perl module for table-driven argument parsing for Perl 5. Free Download
Getopt::Declare is a Perl module with Declaratively Expressed Command-Line Arguments via Regular Expressions. Free Download
Getopt::Tiny is yet another command line argument parsing module. Free Download
Getopt::EvaP is a Perl module to evaluate Perl command line parameters. Free Download
Getopt::Attribute is a Perl module to attribute wrapper for Getopt::Long. Free Download
Getargs::Long is a Perl module with named subroutine arguments, with optional type checking. Free Download
Getopt::Euclid is Perl module executable uniform command-Line interface descriptions. Free Download