Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created February 20, 2009 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamipo/67339 to your computer and use it in GitHub Desktop.
Save kamipo/67339 to your computer and use it in GitHub Desktop.
sub AUTOLOAD {
my $self = shift;
(my $method) = (our $AUTOLOAD =~ /([^:]+)$/);
return if $method eq "DESTROY";
$self->obj->$method(@_);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment