Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>h2xs -XA -n My::Module</p> <p>h2xs is a utility that comes as standard with perl, intended for assisting in building linked modules including linked C headers/code, but which can be used to build a complete skeleton of a pure perl module (with the -XA flags), including things like a test directory, a README file, a Makefile, and a Manifest. (a good article outlining the details here: <a href="http://perltraining.com.au/tips/2005-09-26.html" rel="nofollow">http://perltraining.com.au/tips/2005-09-26.html</a> )</p> <p>It's kinda old-school, but it's worth looking at even if just for all the reminders it gves you about getting everything right (tests, documentation, version numbers, export and export_ok lists, all the easy-to-forget stuff...)</p> <p>You'll end up with a "Module.pm" file inside a "My" directory (from the "My::Module") that looks like this:</p> <pre><code>package My::Module; use 5.008008; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); # Items to export into callers namespace by default. Note: do not export # names by default without a very good reason. Use EXPORT_OK instead. # Do not simply export all your public functions/methods/constants. # This allows declaration use My::Module ':all'; # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK # will save memory. our %EXPORT_TAGS = ( 'all' =&gt; [ qw( ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT = qw( ); our $VERSION = '0.01'; # Preloaded methods go here. 1; __END__ # Below is stub documentation for your module. You'd better edit it! =head1 NAME My::Module - Perl extension for blah blah blah </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload