Skip Menu |

This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id: 4493
Status: resolved
Priority: 0/
Queue: Params-Validate

People
Owner: Nobody in particular
Requestors: aaron.sterr [...] tradingscreen.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.65
Fixed in: 0.71



Subject: subroutine redefined errors
ValidatePP.pm is redefining three functions defined in ValidateXS.pm. Show quoted text
>Subroutine validate_pos redefined at >/usr/lib/perl5/site_perl/5.8.0/Params/ValidatePP.pm line 53. > >Subroutine validate redefined at >/usr/lib/perl5/site_perl/5.8.0/Params/ValidatePP.pm line 132. > >Subroutine validate_with redefined at >/usr/lib/perl5/site_perl/5.8.0/Params/ValidatePP.pm line 281.
We are using version 0.65 of Params::Validate, but I did not see this mentioned in the changelogs, so I believe it is broken up to the current version. Validate.pm has a fix for this same issue with validation_options: if ( $@ || $ENV{PV_TEST_PERL} ) { # suppress a subroutine redefined warning undef &Params::Validate::validation_options; require Params::ValidatePP; } The fix is probably as simple as adding the following lines before requiring Params::ValidatePP: undef &Params::Validate::validate_pos; undef &Params::Validate::validate; undef &Params::Validate::validate_with; The errors can be reproduced by: #!/usr/bin/perl -w use Params::Validate;
From: aaron.sterr [...] tradingscreen.com
[guest - Wed Nov 26 00:25:31 2003]: The correct line changes are: undef *validate_pos; undef *validate; undef *validate_with; Of course, I do not profess to understand whether this is the right thing to do or not. It just seems to work.