in reply to Re: Fixing nits with $object->can($method);
in thread Fixing nits with $object->can($method);

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.

  • Comment on Re^2: Fixing nits with $object->can($method);

Replies are listed 'Best First'.
Re^3: Fixing nits with $object->can($method);
by adrianh (Chancellor) on Dec 07, 2005 at 12:56 UTC
    I tend to think of it more like a poor man's trait.

    Indeed. All depends on your definition of trait and mixing ;-)