MikeTaylor has asked for the wisdom of the Perl Monks concerning the following question:
The former defines classes for a bunch of node-types which together represent a parsed query — things like Net::Z3950::RPN::Term, Net::Z3950::RPN::And, and so on. The latter enhances the functionality of these classes by adding extra methods — a technique I have seen referred to as "monkey-punching", though if there is a more Perlish name for it I would like to be enlightened.
My problem: SimpleServer is at version 1.21. When I try to publish the newer FOLIO module on CPAN, which is at version 1.0, it is rejected with error messages like:
module : Net::Z3950::RPN::And
version: 1.0
in file: Net-Z3950-FOLIO-1.0/lib/Net/Z3950/FOLIO.pm
status : Not indexed because
Net-Z3950-SimpleServer-1.21/SimpleServer.pm in
M/MI/MIRK/Net-Z3950-SimpleServer-1.21.tar.gz has a higher
version number (1.21)
How can I specify in the FOLIO module that I am not trying to define these classes, only add new methods? And so tell CPAN that I am not trying to provide alternative definitions.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dealing with package version numbers when monkey-punching
by haukex (Archbishop) on Sep 17, 2020 at 17:40 UTC | |
by MikeTaylor (Sexton) on Sep 17, 2020 at 19:07 UTC | |
by Aldebaran (Curate) on Sep 18, 2020 at 22:11 UTC | |
by perlfan (Parson) on Sep 18, 2020 at 14:17 UTC | |
by marto (Cardinal) on Sep 18, 2020 at 14:44 UTC | |
by Fletch (Bishop) on Sep 18, 2020 at 15:23 UTC | |
by Perlbotics (Archbishop) on Sep 18, 2020 at 17:21 UTC | |
|
Re: Dealing with package version numbers when monkey-punching
by tobyink (Canon) on Sep 18, 2020 at 10:33 UTC |