Re: Ivy.pm: name change? to upload on CPAN

2003-11-28 Thread Nicholas Clark
On Wed, Nov 26, 2003 at 03:31:21PM +0100, Christophe MERTZ wrote: [Changing Ivy to Net::Ivy] BTW: I do not know if this discussion is still appropriate in the mailing list, as I am new on it. Let me know... I don't have an answer to your question about how to do it, but I do think that the

Re: Ivy.pm: name change? to upload on CPAN

2003-11-26 Thread Christophe MERTZ
On Tue, 2003-11-25 at 23:00, Tim Bunce wrote: Sadly it turns out to be not quite that trivial because the interface has this kind of style $obj-foo($bar); Ivy::foo($bar); I prepared a mail yesterday, but did not send it, where I was asking about this functiunal API. But you

RE: Ivy.pm: name change? to upload on CPAN

2003-11-26 Thread Orton, Yves
All functions in the module can be used as method; the trick used to do it is to use the __PACKAGE__ variable the following way: sub init { my $class = shift if (@_ and $_[0] eq __PACKAGE__); my (%options) = @_; ... } # or : sub bindRegexp { my $self = ref($_[0]) eq

Re: Ivy.pm: name change? to upload on CPAN

2003-11-25 Thread Tim Bunce
Sadly it turns out to be not quite that trivial because the interface has this kind of style $obj-foo($bar); Ivy::foo($bar); But even that's not a big deal. If the functions are exported then do things like: use base Exporter; our @EXPORT = @Net::Ivy::EXPORT; if