Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How can I specify multiple authors and emails with Module::Starter?

by sintadil (Pilgrim)
on Sep 12, 2004 at 14:44 UTC ( [id://390423]=perlquestion: print w/replies, xml ) Need Help??

sintadil has asked for the wisdom of the Perl Monks concerning the following question:

I'm working on a project with someone else and I'd like to try using Module::Starter to build the package instead of using h2xs. I like the ideas of M::S, and it seems to create a cleaner package than h2xs. I'm running into a minor issue, though: I can't seem to find out how to specify to module-starter (the command-line interface) that the module will have more than one author. There's nothing about this in the documentation. Both Google and RT show nothing of interest. I've tried a couple of solutions, and neither of them DTRT. Here's a couple of examples that don't DWIM (options and flags not relevant to this question eschewed):

module-starter --author=$author1 --author=$author2 --email=$email1 \
--email=$email2

This, in normal Getopt::Long fashion, takes the last argument specified to each option. To be expected, but I'd like some magic.

module-starter --author="$author1,$author2" --email="$email1,$email2"

This does get both authors into the relevant files, but they're delimited exactly as one specifies them in the quotes, and the emails are listed after both author names in the relevant .pm files. Suboptimal and unintuitive.

Besides making a patch for this, does anyone have an idea? Thanks in advance.

----

Update: Changed a pejorative phrase based on the advice of PodMaster.

Replies are listed 'Best First'.
Re: How can I specify multiple authors and emails with Module::Starter?
by PodMaster (Abbot) on Sep 12, 2004 at 15:03 UTC
    Besides hacking it into M::S, does anyone have an idea? Thanks in advance.
    Hack? Its not a bad idea to patch Module::Starter::Simple to allow for what you're asking, or it may be easier to write a Module::Starter::Plugin to do just do it.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Hack? Its not a bad idea to patch Module::Starter::Simple to allow for what you're asking,

      By "hack" I simply mean "to add said functionality". If it contains a negative connotation, then I apologise as it was unintended.

      or it may be easier to write a Module::Starter::Plugin to do just do it.

      That's an idea -- I'll investigate it. Thanks!

Re: How can I specify multiple authors and emails with Module::Starter?
by rjbs (Pilgrim) on Sep 13, 2004 at 03:31 UTC
    Sounds like a good idea. I'm a committer for M::S, and would be happy to make this happen. Why don't you visit rt.cpan.org and add a feature request? Otherwise, I'm sure I'll forget about this by morning!
    rjbs

      Sounds like a good idea. I'm a committer for M::S, and would be happy to make this happen. Why don't you visit rt.cpan.org and add a feature request? Otherwise, I'm sure I'll forget about this by morning!

      Neat, I get a response from both you and petdance to the same question. Now that's product support! I'll add the feature request once I finish some documentation for my own project.

      Thanks to both of you for your ready replies, willingness to help, and for Module::Starter itself.

        Neat, I get a response from both you and petdance to the same question.

        We DO talk to each other. :-)

        xoxo,
        Andy

Re: How can I specify multiple authors and emails with Module::Starter?
by petdance (Parson) on Sep 13, 2004 at 03:24 UTC
    You could just ask us to allow it. Both rjbs and I are pretty responsive to the feature requests. Mail it to bug-module-starter(at)rt.cpan.org and we'll probably reply.

    xoxo,
    Andy

      You could just ask us to allow it. Both rjbs and I are pretty responsive to the feature requests. Mail it to bug-module-starter(at)rt.cpan.org and we'll probably reply.

      I thought that it'd be a better idea to see if I was missing something instead of bugging either of you with what may be an FAQ. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://390423]
Approved by Corion
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found