Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://986933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found