Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Adding a class to a module - Can Module::Starter or Dist::Zilla help?

by Khen1950fx (Canon)
on Aug 12, 2012 at 04:53 UTC ( #986933=note: print w/ replies, xml ) Need Help??


in reply to Adding a class to a module - Can Module::Starter or Dist::Zilla help?

First, I'm a die-hard h2xs guy; however, if I were to use module-starter, then I would use the default ExtUtils::MakeMaker.

module-starter --module=My::Module --author=joe jones \ --email=joe.jones@example.com --builder=ExtUtils::MakeMaker
Fix, then run Makefile.PL, and then run
make manifest make make test make install make dist
Now to add a new class, add your class lib, then delete the pm_to_blib file. Rerun make, make manifest, and make dist. Whew! It's harder than I thought to explain it in simple English, but I hope that it makes some sense.


Comment on Re: Adding a class to a module - Can Module::Starter or Dist::Zilla help?
Select or Download Code
Re^2: Adding a class to a module - Can Module::Starter or Dist::Zilla help?
by mascip (Pilgrim) on Aug 12, 2012 at 05:48 UTC

    Hi and thank you for you answer :o)

    I know how to add a class to a module, but i'd like to automatize it. For example to type

    perl add_a_new_class_to_current_module.pl My::Example::Class
    and have the folders and files created, as well as the boilerplates adapted. Until now i've been creating folders and files by hand, and copy-pasting; and i don't like it.
    I made my first message a bit clearer, now.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2014-09-22 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls