Subject: | Providing fewer parameter arguments than required results in strange behavior |
In a test script, I've defined a parameter (--connect) which is to be followed by two arguments. If I only provide one of the two arguments at the command line, Getopt::Euclid steals the last character of the argument and assigns it to the value of the second.
$ perl /tmp/euclid.pl --connect one
$VAR1 = {
'two' => 'e',
'one' => 'on'
};
Subject: | euclid_test.pl |
use v5.14;
use Getopt::Euclid;
use Data::Dumper;
say $Getopt::Euclid::VERSION;
say Dumper($ARGV{'--connect'});
__END__
=head1 NAME
try.pl
=head1 USAGE
try.pl --connect <one> <two>
=head1 OPTIONS
=item --connect <one> <two>
=head1 AUTHOR
Me
=cut