How to get Getopt::Long + pod2usage working?
问题 I'm about to go nuts so here I am :) I'm trying to make documentation for my Perl program, but I never manage to get Getopt::Long and pod2man working. Here is a simple program I wrote for testing purpose: #!/usr/bin/perl use strict; use warnings; use Getopt::Long; use Pod::Usage; Getopt::Long::Configure ("bundling"); my $option = ""; my $verbose = 1; my $quiet = 0; my $man = 0; my $help = 0; GetOptions ( "option=s" => \$option, "verbose" => sub { $verbose = 1; $quiet = 0 }, "quiet|noverbose"