For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > May 2004 > h2xs newbie









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author h2xs newbie
Jupiterhost.Net

2004-05-16, 9:30 pm

Hello,

http://mathforum.org/~ken/perl_modules.html#skel
has an example for using h2xs to create your base files for a module.

So the first question is:
To create the tar.gz file needed for upload to cpan I simply tar/gz
ify the NewModule/ directory, correct?

Secondly:
If I was making a module that is in under the main name space like I'd
change (in the example at the url above) NewModule to NewModule::Foo in
the h2xs command.

Would I still simply do whatever is needed in answer to the first
question, to make it so, once installed via CPAN it would be installed
as /NewModule/Foo.pm ?

TIA

Lee.M - JupiterHost.Net
Jeff 'Japhy' Pinyan

2004-05-17, 12:30 am

On May 16, JupiterHost.Net said:

>So the first question is:
> To create the tar.gz file needed for upload to cpan I simply tar/gz
>ify the NewModule/ directory, correct?


No.

h2xs ... Foo::Bar
cd Foo/Bar
# make the module
perl Makefile.PL
make tardist

--
Jeff "japhy" Pinyan japhy@pobox.com http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
CPAN ID: PINYAN [Need a programmer? If you like my work, let me know.]
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.

Jupiterhost.Net

2004-05-17, 12:30 am

Jeff 'japhy' Pinyan wrote:

> On May 16, JupiterHost.Net said:
>
>
>
>
> No.
>
> h2xs ... Foo::Bar
> cd Foo/Bar
> # make the module
> perl Makefile.PL
> make tardist


Excellent! That gives me a bit more to look into, thanks :)

>

Randy W. Sims

2004-05-17, 2:30 am

JupiterHost.Net wrote:
> Jeff 'japhy' Pinyan wrote:
>
>
>
> Excellent! That gives me a bit more to look into, thanks :)
>
>


You might also want to try Andy Lester's Module-Starter which is a
replacement for some of the h2xs functionality. Also, in the above, you
should probably also run 'make disttest' (MakeMaker) or './Build
disttest' (Module::Build) to test your distribution before uploading it.

Randy.
Jupiterhost.Net

2004-05-18, 10:33 am



Randy W. Sims wrote:

> JupiterHost.Net wrote:
>
>
> You might also want to try Andy Lester's Module-Starter which is a


Its funny, I was creating a function called ModuleMaker and found that
exact module on cpan (surprise its already been done ;p) Thanks for the
ideas :)

> replacement for some of the h2xs functionality. Also, in the above, you
> should probably also run 'make disttest' (MakeMaker) or './Build



make disttest would be done after make tardist correct?

> disttest' (Module::Build) to test your distribution before uploading it.
>
> Randy.
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com