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

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

by stajich (Chaplain)
on Jun 24, 2002 at 02:42 UTC ( [id://176673]=note: print w/replies, xml ) Need Help??


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

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/Bar.pm, no? But you get Foo/Bar/Bar.pm - 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.

  • Comment on Re^4: MakeMaker, h2xs, and writing CPAN modules

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found