On Wed, Dec 10, 2003 at 02:26:40PM -0800 drieux wrote:

> On Dec 10, 2003, at 4:39 AM, Ben Crane wrote:
> 
> >Just sat done and put together my FIRST MODULE!!!!

> It appears that perl5.8.1 rev of h2xs has some
> minor changes:
> [jeeves: 28:] h2xs -AX Wetware::Pid
> Defaulting to backwards compatibility with perl 5.8.1
> If you intend this module to be compatible with earlier perl versions, 
> please
> specify a minimum perl version with the -b option.
> 
> Writing Wetware/Pid/Pid.pm
> Writing Wetware/Pid/Makefile.PL
> Writing Wetware/Pid/README
> Writing Wetware/Pid/t/1.t
> Writing Wetware/Pid/Changes
> Writing Wetware/Pid/MANIFEST
> [jeeves: 29:]

5.8.2's h2xs has yet some more changes. It's advisable to get hold of
this version of h2xs (it will run with older perls as well) because it
creates a directory-structure that is more in accordance with the
preferred style of CPAN modules:

    [EMAIL PROTECTED]:/tmp$ h2xs5.8.2 -b 5.6.0 -AX Wetware::Pid
    Writing Wetware-Pid/lib/Wetware/Pid.pm
    Writing Wetware-Pid/Makefile.PL
    Writing Wetware-Pid/README
    Writing Wetware-Pid/t/Wetware-Pid.t
    Writing Wetware-Pid/Changes
    Writing Wetware-Pid/MANIFEST

Furthermore, another thing I tend to keep up-to-date is
ExtUtils::MakeMaker. With a recent EU::MM and the conventional

    perl Makefile.PL
    make
    make dist

a decent META.yml is created and added to the distribution.

> NOW comes the 'big uglies' about the design
> philosophy issues - Unless you are Lincoln Stein,
> do not try to make your module BOTH OO-ish and Procedural,
> it can be done - but pick one or the other.

I suppose that mixing styles can be done in a clever way. However,
obscenities such as the approach of CGI.pm really should be avoided.

> I come from the 'put the POD in a Foo.pod file'
> school, others come from the 'interleave pod and code',
> while some are true believers of the 'pod at the end'.
> But think about how other persons pod has helped you,
> do the same.

I used to belong to the 'interleave pod and code' school but soon
changed that when I realized that there is no way to interleave POD into
XS files.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to