Skip Menu |

This queue is for tickets about the Getopt-Euclid CPAN distribution.

Report information
The Basics
Id: 94257
Status: open
Priority: 0/
Queue: Getopt-Euclid

People
Owner: Nobody in particular
Requestors: FOZZMOO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.4.4
  • 0.4.5
Fixed in: (no value)



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
Thank you for the report. I could reproduce the issue and I am glad that this is not a regression in the recently released version of Getopt::Euclid (0.4.5). I do not have time to investigate the issue right now. I may get to it at some point next week. Feel free to write a patch if you are so inclined. Cheers, Florent