Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Re: Re: MakeMaker, h2xs, and writing CPAN modules

by perrin (Chancellor)
on Jun 24, 2002 at 01:48 UTC ( #176667=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: MakeMaker, h2xs, and writing CPAN modules
in thread MakeMaker, h2xs, and writing CPAN modules

If I started from scratch, I would do it that way. However, I want this to go to CPAN, and I don't want to fuss with MakeMaker myself, so using the skeleton generated by h2xs seems like the way to go. Unfortunately, h2xs does not generate a directory structure that works if you just try to use the modules in place without installing them.
  • Comment on Re: Re: Re: Re: MakeMaker, h2xs, and writing CPAN modules

Replies are listed 'Best First'.
Re^4: MakeMaker, h2xs, and writing CPAN modules
by stajich (Chaplain) on Jun 24, 2002 at 02:42 UTC
    Okay - now that you mention it, I do remember h2xs being quite unhelpful when setting up namespaces. Aren't you kind of starting from scratch anyways though if you are creating modules with h2xs. Can you not just code up the correct directory and namespaces by hand or are you actually porting C code with h2xs? I think that the behavior is really quite unhelpful - I mean when you say you want h2xs -X -A -n Foo::Bar you shold get Foo/, no? But you get Foo/Bar/ - maybe there's a cmd line arg that I am ignorant of.

    Now I think that setting up a Makefile.PL is actually really easy (barring the too many files problem), are you sure you can't just do:

    <code> (Makefile.PL) WriteMakefile( 'NAME' => 'Foo::Bar' 'VERSION' => '0.01', '$] >= 5.005 ? ## add keywords that 5.005 and beyond support ('AUTHOR' => 'perrin') ); Am I oversimplifying your needs? I found that a lot of the Exporter and AUTOLOAD crap that comes with the basic h2xs skeleton was causing me the problems when I just tried to test the install - I make sure and run h2xs with -A to avoid any problems resulting from that.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176667]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2018-07-19 02:35 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (399 votes). Check out past polls.