Help for this page

Select Code to Download


  1. or download this
    sub new {
      my $class = shift;
    ...
      # ... some code to populate attribs from passed parms
      return $self;
    }
    
  2. or download this
    use MyMod;
    my $mm = MyMod->new(atr1 => 1, atr2 => 'string2');