Help for this page

Select Code to Download


  1. or download this
    for (@attribute_list) {
        my $sub = "package $package; sub get$_ { \$_[0]->get($_) }; ";
        eval $sub;
    }
    
  2. or download this
    Foo->define_attributes(qw(attr1 attr2 attr3));