Help for this page

Select Code to Download


  1. or download this
    sub _setter_getter_maker
    {
    ...
    
      return $funcref;
    }
    
  2. or download this
    my $pretend_object = {};
    my $new_func = _setter_getter_maker($pretend_object, 'attrib');
    
    #Now we can set a value for 'attrib' in this object
    $new_func->('value');