Help for this page

Select Code to Download


  1. or download this
    use Object::Util;
    
    my $cloned_object = $existing_object->$_clone(%extra_parameters);
    
  2. or download this
    $cloned_object->$_extend({
      my_new_method => sub {
    ...
    });
    
    $cloned_object->my_new_method();  # says "yay!"