in reply to Re: Building Perl Modules
in thread Building Perl Modules

Thnx for the answer!!!!

The problem is:

Module : Pod::PseudoPod::HTML

I wish to write a module... That will be:

Pod::PseudoPod::HTML::Book

But I can't understand how to make this...

How to link the content of Book to the Pod::PseudoPod::HTML to use the code from up the tree

Replies are listed 'Best First'.
Re^3: Building Perl Modules
by kcott (Archbishop) on Jul 23, 2013 at 10:40 UTC

    Many (probably most) documentation pages have a SEE ALSO section which provides links to related documentation. The first "Perl module: ..." link I provided above ("perlmod Perl modules: how they work") has a link to perlootut - Object-Oriented Programming in Perl Tutorial. (It sounds like a tutorial is what you need.) Within that documentation, you'll find the answer to your question:

    "Inheritance lets you create a specialized version of an existing class. Inheritance lets the new class reuse the methods and attributes of another class. ..."

    -- Ken

      Thnx Ken! This helped me a lot!
Re^3: Building Perl Modules
by tobyink (Canon) on Jul 23, 2013 at 09:53 UTC
    use strict; use warnings; package Pod::PseudoPod::HTML::Book; use base 'Pod::PseudoPod::HTML'; # ... your code goes here ... 1;
    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
      Thnx!