--- Kurt Starsinic <[EMAIL PROTECTED]> wrote: > package Foo; > use Exporter; > use strict::can; > if (Foo->can('import')); # BOOM
> I can provide other examples from my own code, but I > think you get the point. The current version on my hard drive allows for "import". > The module is clever, but it's not clear to me that it's > practically useful. Could you provide a real-world example > where this > would help to prevent or detect a programming error? Your world and my world can be considerably different. Using code very similar to this solved a problem I had with Class::Trait whereby I was exporting methods which should not have been exported. Also, if one is routinely in the habit of checking class capabilities rather than class types, this can be quite useful. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/