in reply to construct a standard object oriented program

... and since you want to build a class (or module, in Perl-ish), you definitely must start with h2xs. This will create automatically, the skeleton of your module and is a really time saver.

Regards,

  • Comment on Re: construct a standard object oriented program

Replies are listed 'Best First'.
Re: Re: construct a standard object oriented program
by benlaw (Scribe) on Mar 30, 2002 at 17:12 UTC
    h2xs , oh what is it??
    mm, i haven't hear before !

    i try to execute the command... wor, it seems quite difficult for me ~ hehe , is there any example for h2xs? thx!

      "h2xs builds a Perl extension from C header files"

      That's what 'man h2xs' says - you should read it for yourself, but in the meantime, try this command:

      h2xs -A -X FooBar
      And look inside the newly created directory (FooBar) for a pleasant surprise. ;)

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)