Help for this page

Select Code to Download


  1. or download this
        my $obj = My::Class->new(...);
        my $other_obj = $obj->new(...);
    
  2. or download this
    My::Class->new("a","b");
    
  3. or download this
    My::Class::new("My::Class","a","b");
    
  4. or download this
    $self = { @_ };
    # or
    %$self = @_;
    
  5. or download this
    sub new {
        my ($class,%args) = @_;
        my $self = \%args;
        bless $self, ref($class)||$class;
    };