App-Getconf
view release on metacpan or search on metacpan
lib/App/Getconf.pm view on Meta::CPAN
Option specifying a string, with check specified as function (code ref).
Subroutine will have C<$_> set to value to check, and the value will be the
only argument (C<@_>) passed.
Subroutine should return C<TRUE> when option value should be accepted,
C<FALSE> otherwise.
=cut
sub opt_sub(&) {
my ($sub) = @_;
return opt { check => $sub };
}
=item C<opt_enum ["first", ...]>
Option specifying a string. The string must be one of the specified in the
array.
( run in 1.053 second using v1.01-cache-2.11-cpan-49f99fa48dc )