POD2USAGE(1)

okay bestie, this is POD2USAGE(1) straight out of the Perl Programmers Reference Guide, and itโ€™s the manual page for pod2usage โ€” a whole command dedicated to printing usage messages from embedded pod docs in files. itโ€™s giving practical, polished, and slightly iconic. ๐Ÿ’…โœจ

๐ŸŒธ NAME ๐ŸŒธ

pod2usage โ€” print usage messages from embedded pod docs in files. thatโ€™s the whole assignment, no notes. ๐Ÿ’–

โœจ SYNOPSIS โœจ

pod2usage   [-help] [-man] [-exit exitval] [-output outfile] [-verbose
            level] [-pathlist dirlist] [-formatter module] [-utf8] file

๐ŸŽ€ OPTIONS AND ARGUMENTS ๐ŸŽ€

okay now the flags, bestie โ€” every single one is important, so donโ€™t skip the little guys. ๐Ÿซถ

  • -help โ€” prints a brief help message and exit. short, sweet, helpful. ๐ŸŽ€
  • -man โ€” prints this commandโ€™s manual page and exit. yes, it can show you its own manual page. main character behavior, honestly. ๐Ÿ‘‘
  • -exit exitval โ€” the exit status value to return. thatโ€™s exitval, literally the value that goes out the door with you. ๐Ÿ’…
  • -output outfile โ€” the output file to print to. the special names - or >&1 or >&STDOUT mean standard output is used. >&2 or >&STDERR mean standard error is used. know the vibe before you redirect. ๐Ÿ”ฅ
  • -verbose level โ€” the desired level of verbosity to use:
    • 1 : print SYNOPSIS only
    • 2 : print SYNOPSIS sections and any OPTIONS/ARGUMENTS sections
    • 3 : print the entire manpage (similar to running pod2text)
  • -pathlist dirlist โ€” specifies one or more directories to search for the input file if it was not supplied with an absolute path. each directory path in the given list should be separated by a ':' on Unix (';' on MSWin32 and DOS). path separator lore, iykyk. ๐Ÿงš
  • -formatter module โ€” which text formatter to use. default is Pod::Text. an alternative would be e.g. Pod::Text::Termcap. formatter choices are a whole mood. ๐ŸŒˆ
  • -utf8 โ€” this option assumes that the formatter (see above) understands the option "utf8". it turns on generation of utf8 output. โœจ
  • file โ€” the pathname of a file containing pod documentation to be output in usage message format. if omitted, standard input is read โ€” but the output is then formatted with Pod::Text only โ€” unless a specific formatter has been specified with -formatter. important little caveat, bestie. ๐Ÿซถ

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

pod2usage will read the given input file looking for pod documentation and will print the corresponding usage message. if no input file is specified then standard input is read. thatโ€™s the flow. ๐Ÿฆ‹

pod2usage invokes the pod2usage() function in the Pod::Usage module. please see "pod2usage()" in Pod::Usage. the lore is right there. ๐Ÿ“š

๐ŸŒŸ SEE ALSO ๐ŸŒŸ

go peek at Pod::Usage, pod2text, Pod::Text, Pod::Text::Termcap, and perldoc. the whole friend group is linked up. ๐Ÿ’–

๐ŸŒธ AUTHOR ๐ŸŒธ

please report bugs using http://rt.cpan.org.

Brad Appleton <bradapp@enteract.com>

Based on code for pod2text(1) written by Tom Christiansen <tchrist@mox.perl.com>.


thatโ€™s the whole page, bestie โ€” source/version perl v5.42.3, dated 2026-11-03, filed under POD2USAGE(1) ๐Ÿซถ๐Ÿ’–

๐Ÿ“ฆ where this page comes from