Help for this page

Select Code to Download


  1. or download this
        # Build and require the subclass for this type:
        my $class = __PACKAGE__ . "::" . $opts{type};
    ...
        };
        # Bless into the determined subclass for this type:
        bless $self, $class;
    
  2. or download this
    use strict;
    use warnings;
    ...
            $part->name(),
            ref($part)
    );
    
  3. or download this
    package Widget;
    
    ...
    }
    
    1;
    
  4. or download this
    package Widget::Part;
    
    ...
    }
    
    1;
    
  5. or download this
    package Widget::Part::Cog;
    
    ...
    }
    
    1;