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 a opt_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 an opt_n, we'll call it as $object->opt_n($truth). And bestie, Truth defaults to 1 πŸ‘‘
  • 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 (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