Help for this page

Select Code to Download


  1. or download this
    sub new {
      my ($class, $args) = @_;
    ...
      my $attr_2 = 2;
      return ($attr_1, $attr_2);
    }
    
  2. or download this
    sub new {
      my ($class, $args) = @_;
    ...
      $self->{attr_1} = $attr_1;
      $self->{attr_2} = $attr_2;
    }