Help for this page

Select Code to Download


  1. or download this
    package Example::Person;
    
    ...
        my( $self )= @_;
        return "$self->{name} ($self->{age} years)";
    }
    
  2. or download this
    require Example::Person;
    my $me= Example::Person->new( "Tye", 12 );
    print "Hi, I'm $me.\n";
    # prints:
    # Hi, I'm Tye (12 years).