Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

How to make a CPAN Module Distribution

by tachyon (Chancellor)
on Apr 14, 2002 at 20:24 UTC ( #158999=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ h2xs -AX Foo::Bar
    
  2. or download this
    Foo/Bar/Makefile.PL
    Foo/Bar/Bar.pm
    ...
    Foo/Bar/test.pl
    Foo/Bar/MANIFEST
    Foo/Bar/README
    
  3. or download this
    $ mv Bar Foo-Bar-0.01
    
  4. or download this
        'NAME' => 'Bar'
    
    ...
        'NAME' => 'Foo::Bar'
    
        # so fix it!
    
  5. or download this
    Foo-Bar-0.01/Bar.pm
    Foo-Bar-0.01/Makefile.PL
    ...
    Foo-Bar-0.01/Changes
    Foo-Bar-0.01/test.pl
    Foo-Bar-0.01/README
    
  6. or download this
    Foo::Bar         # will install in Foo/Bar.pm
    Foo::Bar::Baz    # will install in Foo/Bar/Baz.pm
    
  7. or download this
    Foo-Bar-0.01/Bar.pm
    Foo-Bar-0.01/Makefile.PL
    ...
    # in Makefile.PL
    WriteMakefile(
        'NAME' => 'Foo::Bar',
    
  8. or download this
    $ cd Foo-Bar-0.01
    $ mkdir Bar
    ...
    $ cd Bar
    $ perl -pi.bak -e 's/Foo::Bar/Foo::Bar::Baz/g' Baz.pm
    $ rm Baz.pm.bak
    
  9. or download this
        module-starter --module=Foo::Bar,Foo::Bat \
            --author="Andy Lester" --email=andy@petdance.com
    
  10. or download this
    use Test;
    BEGIN { plan tests => 42 }
    ...
    ok( $reply eq 'some string' );
    ok( scalar @reply == 42 );
    ok( join '', @reply eq 'some list of stuff' );
    
  11. or download this
    Foo-Bar-0.01/t/some_test.t
    Foo-Bar-0.01/t/test_this.t
    Foo-Bar-0.01/t/test_that.t
    
  12. or download this
    $ cd Foo-Bar-0.01
    $ md t
    $ cp test.pl ./t/some_test.t
    $ cp test.pl ./t/other_test.t
    $ rm test.pl
    
  13. or download this
    $ tar -czf Foo-Bar-0.01.tar.gz Foo-Bar-0.01
    
    ...
    
    $ tar -cf Foo-Bar-0.01.tar Foo-Bar-0.01
    $ gzip Foo-Bar-0.01.tar
    
  14. or download this
    $ tar -xzvf Foo-Bar-0.01.tar.gz
    $ cd Foo-Bar-0.01
    ...
    $ make
    $ make test
    $ make install
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-12-25 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls