in reply to My module - my latest step

I'd love to see your module in CPAN. It's quite heavy, and I think I won't be using it because of that, but I'm sure many module developers and users will appreciate the versioning, especially the foo => [ v1.0, 'foo_old', v2.0, 'foo_new' ] feature.

Have you seen Exporter::Dream? It has a _prefix option to have bar exported as quux_bar if the _prefix is quux_. Maybe you can add something like that to Exporter::VA?

What does "VA" stand for anyway? Couldn't find it in its documentation.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: My module - my latest step
by John M. Dlugosz (Monsignor) on Jan 06, 2003 at 17:13 UTC
    I've uploaded it to CPAN, but the namespace registration seems to be taking a while. VA is for Versioning and Aliasing. I suppose I can make that more obvious where it's stated in the =head1 NAME section. Add something like _prefix? I'm thinking of
    use SomeModule -rename => ['prefix_bar', 'bar', v2.4 ]
    where the version is optional, and the "target" parameter can be a name to use or a reference to set, so you can grab a versioned import without modifying your namespace at all. I've not decided on a good name yet; -rename doesn't convey the ref ability and I want a name that better suits the target=source,version ordering of the parameters.

    I've not read your Exporter::Dream node yet. I see bbfu and theorbtwo already pointed you to my earlier work. I'll read your node carefully soon, and see what kind of ideas you have.

    —John