I often use import as a poor man's mixin.
I tend to think of it more like a poor man's trait.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re^2: Fixing nits with $object->can($method);
by xdg
in thread Fixing nits with $object->can($method);
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |