warnings

my $warnings = $opts->warnings;
my $warning = $warnings->[0][0];

die $warning;

The warnings method returns the set of warnings emitted during option parsing.

warnings() : ArrayRef[ArrayRef[Str]]

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 21:

Unknown directive: =description

Around line 25:

Unknown directive: =signature

Around line 29:

Unknown directive: =type