Help for this page

Select Code to Download


  1. or download this
    sub new {
        my ($class, %options) = @_;
    ...
        # validate options
        return bless \%options, $class;
    }
    
  2. or download this
    my $obj = Bob::MyObject->new (option => 1, );
    
  3. or download this
    my $newObj = $obj->new (option => 1, );