Skip Menu |

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

Report information
The Basics
Id: 46404
Status: rejected
Priority: 0/
Queue: Getopt-Euclid

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

Bug Information
Severity: Wishlist
Broken in: v0.2.0
Fixed in: (no value)



Subject: Getopt::Euclid prints errror/usage on perl -c
I have a script with "REQUIRED ARGUMENTS" set and when I run perl -wc on it I get the error/usage message, instead of "syntax ok". I've added "return if $^C" to the begin sub and that fixed things for me (see diff). I ran all the module tests and everything still passed. Hope this is of some use.
Subject: Getopt-Euclid-v.0.2.0.diff
% diff lib/Getopt/Euclid.pm blib/lib/Getopt/Euclid.pm 41a42 > return if $^C; loninwebd1:~/Getopt-Euclid-v0.2.0% diff -u lib/Getopt/Euclid.pm blib/lib/Getopt/Euclid.pm --- lib/Getopt/Euclid.pm 2009-05-27 10:06:34.419397760 +0100 +++ blib/lib/Getopt/Euclid.pm 2009-05-27 09:55:28.000000000 +0100 @@ -39,6 +39,7 @@ } sub import { + return if $^C; shift @_; my $minimal_keys; my $vars_prefix;
Duplicate of #34195. Thanks for the patch, but I think it might be a bit more involved than just preventing import from running (i.e. values should still be exported, no?).