Skip to content

Instantly share code, notes, and snippets.

@stevan
Created May 17, 2009 16:55
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 stevan/113056 to your computer and use it in GitHub Desktop.
Save stevan/113056 to your computer and use it in GitHub Desktop.
package MyRole;
...
package MyBaseThing;
with MyRole;
....
package MyConcreteThing1;
extends MyBaseThing;
...
package MyConcreteThing2;
extends MyConcreteThing1;
...
# then in your class ...
package MyApp;
has thing => (
is => rw,
does => MyRole,
handles => MyRole,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment