in reply to 'switch' and 'smartmatch' features deprecated in 5.38
use Pod::Usage; use Getopt::Long; Getopt::Long::Parser->new(config => ['gnu_getopt']) ->getoptions( 'help|h' => sub { pod2usage(1) }, 'man' => sub { pod2usage(-exitval => 1, -verbose => 2) }, 'verbose|v' => \my $verbose, 'force|f' => \my $force, 'table=s' => \my $table, ) or pod2usage(2);
Give it a try.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'switch' and 'smartmatch' features deprecated in 5.38
by soonix (Chancellor) on Jun 27, 2023 at 07:10 UTC | |
by NERDVANA (Priest) on Jun 27, 2023 at 20:14 UTC |