mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 20:07:50 -04:00
13 lines
266 B
Plaintext
13 lines
266 B
Plaintext
parse and validate simple name/value option pairs. Example:
|
|
|
|
use Data::OptList;
|
|
|
|
my $options = Data::Optlist::mkopt([
|
|
qw(key1 key2 key3 key4),
|
|
key5 => { ... },
|
|
key6 => [ ... ],
|
|
key7 => sub { ... },
|
|
key8 => { ... },
|
|
key8 => [ ... ],
|
|
]);
|