Professional Web Applications Themes

h2xs newbie - PERL Beginners

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 ? ...

  1. #1

    Default h2xs newbie

    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
    Jupiterhost.Net Guest

  2. #2

    Default Re: h2xs newbie

    On May 16, JupiterHost.Net said:
     

    No.

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

    --
    Jeff "japhy" Pinyan 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.

    Jeff Guest

  3. #3

    Default Re: h2xs newbie

    Jeff 'japhy' Pinyan wrote:
     
    >
    >
    > No.
    >
    > h2xs ... Foo::Bar
    > cd Foo/Bar
    > # make the module
    > perl Makefile.PL
    > make tardist[/ref]

    Excellent! That gives me a bit more to look into, thanks :)
     
    Jupiterhost.Net Guest

  4. #4

    Default Re: h2xs newbie

    JupiterHost.Net wrote: 
    >>
    >>
    >>
    >> No.
    >>
    >> h2xs ... Foo::Bar
    >> cd Foo/Bar
    >> # make the module
    >> perl Makefile.PL
    >> make tardist[/ref]
    >
    >
    > Excellent! That gives me a bit more to look into, thanks :)

    >[/ref]

    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.
    Randy Guest

  5. #5

    Default Re: h2xs newbie



    Randy W. Sims wrote:
     
    >>
    >>
    >>
    >> Excellent! That gives me a bit more to look into, thanks :)
    >> 
    >>[/ref]
    >
    > You might also want to try Andy Lester's Module-Starter which is a[/ref]

    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 :)
     


    make disttest would be done after make tardist correct?
     
    Jupiterhost.Net Guest

Similar Threads

  1. Replies: 5
    Last Post: December 3rd, 10:44 AM
  2. h2xs woes
    By Tim X in forum PERL Modules
    Replies: 0
    Last Post: June 15th, 09:31 AM
  3. h2xs mess
    By Sisyphus in forum PERL Modules
    Replies: 3
    Last Post: July 9th, 10:47 PM
  4. Compiling the h2xs way.
    By kspecial@linuxmail.org in forum PERL Miscellaneous
    Replies: 1
    Last Post: July 7th, 11:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139