sure, you can inherit from a parent class.
like,

package math::myClass;
use base 'math';

my_method {
  ...
}

1;

On Fri, Mar 21, 2008 at 7:17 PM, Sharan Basappa
<[EMAIL PROTECTED]> wrote:
> BTW, is there a way to add to existing modules instead of creating a new one.
>  For example, the routine I am writing might fit perfectly in math module.
>
>
>  On Fri, Mar 21, 2008 at 3:31 PM, Sharan Basappa
>
>
> <[EMAIL PROTECTED]> wrote:
>  > ok. That clarifies ...
>  >
>  >
>  >
>  >  On Fri, Mar 21, 2008 at 3:29 PM, J. Peng <[EMAIL PROTECTED]> wrote:
>  >  > On Fri, Mar 21, 2008 at 5:55 PM, Sharan Basappa
>  >  >
>  >  > <[EMAIL PROTECTED]> wrote:
>  >  >
>  >  > > Thanks, I will take a look. But going by the webpage, it seems to me
>  >  >  >  that the changes will
>  >  >  >  to the language itself and chnages to compiler. But what I want to
>  >  >  >  contribute is a subroutine?
>  >  >  >  Is this the right way to go?
>  >  >
>  >  >  Write a module which includes that subroutine and contribute it to
>  >  >  cpan, this is the best way I think.
>  >  >
>  >  >  --
>  >  >
>  >  >
>  >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >  >  http://learn.perl.org/
>  >  >
>  >  >
>  >  >
>  >
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to