Name : perl-Getopt-Std-Strict
| |
Version : 1.10.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-22 22:53:29
|
Group : Unspecified
| Source RPM : perl-Getopt-Std-Strict-1.10.0-lp156.1.1.src.rpm
|
Size : 0.00 MB
| |
Packager : https://www_suse_com/
| |
Summary : Getopt::Std::Strict Perl module
|
Description :
Getopt::Std is nice but it could be even easier to use. This is how I would like Getopt::Std to behave.
Two main concepts are strengthened here, on top of Getopt::Std.
1) Variables are created even under use strict 2) Your option specs are passed at compile time.
The first import string to use is what you would send to Getopt::Std. If you have an option flag \'g\' and a paramater \'r\' taking an argument, the usage would be..
use strict; use Getopt::Std::Strict \'gr:\';
$opt_g;
This makes available throughout your program the variables $opt_g and $opt_r, as well as the hash %OPT, which contains $OPT{g} and $OPT{r}.
Compare that with the alternative..
use strict; use Getopt::Std;
my %o;
getopts(\'gr:\', \\%o);
$o->{g};
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |