Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RFC: Some Reflections on Becoming a New CPAN Author

by oko1 (Deacon)
on Jan 08, 2011 at 01:24 UTC ( #881186=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Typical invocation: create a pure Perl module (no C code) called
    # 'Amazing::Perl::Extension", omit AutoLoader
    ...
    
    #  You can even declare it as backward-compatible - e.g., w/Perl 5.7.1
    h2xs -XA -b 5.7.1 Amazing::Perl::Extension
    
  2. or download this
    lib/Amazing/Perl/Extension.pm   # This is the boilerplate for your mod
    +ule
    t/Amazing-Perl-Extension.t      # The Test::More-based test for loadin
    +g it
    ...
    Makefile.PL                     # ExtUtils::MakeMaker-based makefile m
    +aker
    MANIFEST                        # Listing of all of the above
    README                          # Intro/installation instructions
    
  3. or download this
    tar cvzf Amazing-Perl-Extension-0.01.tgz Amazing-Perl-Extension
    
  4. or download this
    # This is in a separate file in t/*.t - e.g., 't/OS_test.t'
    use Test::More tests => 1;
    
    ok($^O !~ /^(?:MSWin|VMS|dos|MacOS|os2|epoc|cygwin)/i) or BAIL_OUT("OS
    + unsupported");
    
  5. or download this
    use Test::More tests => 1;
    
    ok($^O eq 'linux');
    
  6. or download this
    =head1 ABSTRACT
    
    ...
    
    =end text
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://881186]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-22 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls