Getopt::GetArgs 1.03
Sponsored Links
Getopt::GetArgs 1.03 Ranking & Summary
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.
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
Getopt::GetArgs 1.03 Keywords
GetArgs
WHATEVER
ARGS
GetArgs 1.03
to allow
Perl module
arguments
content
argument
passing
passed
subroutine
Getopt::GetArgs
GetoptGetArgs
Getopt::GetArgs 1.03
Libraries
Bookmark Getopt::GetArgs 1.03
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
arguments against abortion
pro death penalty arguments
arguments supporting god existence
how to stop arguments
arguments against global warming
arguments on tv
arguments against nuclear power
arguments against gay marriage
pro life arguments
arguments on live tv
arguments for euthanasia
arguments against the death penalty
abortion arguments
arguments caught on tape
arguments pro physician assisted suicide
arguments for the death penalty
arguments against euthanasia
argument topics
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
Latest Software
Popular Software
Favourite Software