Help for this page

Select Code to Download


  1. or download this
    sub wrap_sub {
      my ($class, $function) = @_;
    ...
      *{"$class\::$function"} = $wrap_sub;
      return;
    }
    
  2. or download this
    sub foo {
      warn 'fooooo';
    }
    __PACKAGE_->wrap_sub("foo");