Skip to content

Instantly share code, notes, and snippets.

@ocharles
Created January 24, 2009 23:29
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 ocharles/51591 to your computer and use it in GitHub Desktop.
Save ocharles/51591 to your computer and use it in GitHub Desktop.
package Test;
use Moose;
sub foo {
print 'doing foo';
}
package MoreTest;
use Moose;
extends 'Test';
before 'foo' => sub {
die "chock"; # <--- how to catch this in SUPER::foo?
};
MoreTest->new->foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment