Pod::Usage(3p) Perl Programmers Reference Guide Pod::Usage(3p)
Pod::Usage(3p) Perl Programmers Reference Guide Pod::Usage(3p) # Pod::Usage(3p) Perl Programmers Reference Guide Pod::Usage(3p) NNAAMMEE # Pod::Usage - extracts POD documentation and shows usage information SSYYNNOOPPSSIISS # use Pod::Usage; my $message_text = "This text precedes the usage message."; my $exit_status = 2; ## The exit status to use my $verbose_level = 0; ## The verbose level to use my $filehandle = \*STDERR; ## The filehandle to write to pod2usage($message_text); pod2usage($exit_status); pod2usage( { -message => $message_text , -exitval => $exit_status , -verbose => $verbose_level, -output => $filehandle } ); pod2usage( -msg => $message_text , -exitval => $exit_status , -verbose => $verbose_level, -output => $filehandle ); pod2usage( -verbose => 2, -noperldoc => 1 ); pod2usage( -verbose => 2, -perlcmd => $path_to_perl, -perldoc => $path_to_perldoc, -perldocopt => $perldoc_options ); AARRGGUUMMEENNTTSS # ppoodd22uussaaggee should be given either a single argument, or a list of arguments corresponding to an associative array (a "hash"). ...