POD::PERLDOC::GETOPTSOO(3perl)
β¨ NAME β¨
Pod::Perldoc::GetOptsOO β a customized option parser for Pod::Perldoc π
π SYNOPSIS π
use Pod::Perldoc::GetOptsOO ();
Pod::Perldoc::GetOptsOO::getopts( $obj, \@args, $truth )
or die "wrong usage";
π¦ DESCRIPTION π¦
okay so bestie, this module implements a customized option parser that's used for Pod::Perldoc. It's giving very much "Getopt::Std's getopts, but make it custom" β¨
The way it works is you call:
Pod::Perldoc::GetOptsOO::getopts($object, \@ARGV, $truth)
Then here's the whole vibe check, step by step:
- Given
-n, if there's aopt_n_with, it'll call$object->opt_n_with( ARGUMENT )β like,"-n foo"becomes$object->opt_n_with('foo'). Ditto for"-nfoo"π - Otherwise (given
-n) if there's anopt_n, we'll call it as$object->opt_n($truth). And bestie, Truth defaults to1π - Otherwise we try calling
$object->handle_unknown_option('n')β and we increment the error count by the return value of it, fr fr - If there's no
handle_unknown_option, then we just warn, and then increment the error counter π
The return value of Pod::Perldoc::GetOptsOO::getopts is true if there are no errors β otherwise it's false. No cap. π«Ά
π SEE ALSO π
Pod::Perldoc
π COPYRIGHT AND DISCLAIMERS π
Copyright (c) 2002-2007 Sean M. Burke.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. π
π AUTHOR π
Current maintainer: Mark Allen "<mallen@cpan.org>" β¨
Past contributions from: brian d foy "<bdfoy@cpan.org>", Adriano R. Ferreira "<ferreira@cpan.org>", Sean M. Burke "<sburke@cpan.org>" π
and that's the whole page bestie, slay π
this was perl v5.44.0, dated 2026-10-17 β go forth and parse those options, you absolute icon πβ¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms