Created
August 10, 2022 05:55
-
-
Save rwp0/c1be36ddc39707bf1be14adc3fac480d to your computer and use it in GitHub Desktop.
Perl GetOpt::Long Boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Getopt::Long qw( | |
:config | |
auto_help | |
auto_version | |
no_ignore_case | |
bundling | |
); | |
my %options; | |
Getopt::Long::GetOptions( | |
'user|u=s' => \$options{user}, | |
'host|h=s' => \$options{host}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment