Pod::Perldoc::GetOptsOO(3pm) Perl Programmers Reference Guide Pod::Perldoc::GetOptsOO(3pm)

# [NAME](#NAME)

Pod::Perldoc::GetOptsOO - Customized option parser for Pod::Perldoc

# [SYNOPSIS](#SYNOPSIS)

```
    use Pod::Perldoc::GetOptsOO ();
    Pod::Perldoc::GetOptsOO::getopts( $obj, \@args, $truth )
       or die "wrong usage";
```

# [DESCRIPTION](#DESCRIPTION)

Implements a customized option parser used for Pod::Perldoc.

Rather like Getopt::Std's getopts:

[Call Pod::Perldoc::GetOptsOO::getopts($object, \\@ARGV, $truth)](#Call)

[Given -n, if there's a opt\_n\_with, it'll call $object-&gt;opt\_n\_with( ARGUMENT ) (e.g., "-n foo" =&gt; $object-&gt;opt\_n\_with('foo'). Ditto "-nfoo")](#Given)

[Otherwise (given -n) if there's an opt\_n, we'll call it $object-&gt;opt\_n($truth) (Truth defaults to 1)](#Otherwise)

[Otherwise we try calling $object-&gt;handle\_unknown\_option('n') (and we increment the error count by the return value of it)](#Otherwise~2)

[If there's no handle\_unknown\_option, then we just warn, and then increment the error counter](#If)

The return value of Pod::Perldoc::GetOptsOO::getopts is true if no errors, otherwise it's false.

# [SEE ALSO](#SEE_ALSO)

Pod::Perldoc

# [COPYRIGHT AND DISCLAIMERS](#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](#AUTHOR)

Current maintainer: Mark Allen "&lt;mallen@cpan.org&gt;"

Past contributions from: brian d foy "&lt;bdfoy@cpan.org&gt;" Adriano R. Ferreira "&lt;ferreira@cpan.org&gt;", Sean M. Burke "&lt;sburke@cpan.org&gt;"

2026-08-31 perl v5.44.0

---

Document: Pod::Perldoc::GetOptsOO(3pm) from perl 5.44.0-r1 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
