Help for this page

Select Code to Download


  1. or download this
    package MyObj;
    use Class::MakeMethods::Autoload { 
      'new' => 'Template::Hash::new', 
      '.*'  => 'Template::Inheritable::code_or_scalar -method',
    };
    
  2. or download this
    my $person = MyObj->new();
    
    # Simple string get/set
    ...
    # You can change the method repeatedly with the same syntax:
    $person->greeting( sub { "Hi there!" } );
    print $person->greeting();