in reply to Re^7: In praise of Perl's object system.
in thread In praise of Perl's object system.

but it's often overly wrong, and not very convenient; thus the fact that you can't safely import subroutines into an OO module feels like a design bug to me.

For convenience; and to solve the problem at coding time rather than burdening your users with runtime solutions, try:

package utils; use Exporting::Module qw[ utility_sub ]; package Your::OO::Module; use Exporting::Module (); ... utils::utility_sub(); ...

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^9: In praise of Perl's object system.
by moritz (Cardinal) on Oct 01, 2010 at 12:18 UTC
    That works nicely, as long as I'm the only one using namespace utils; if I'm not, I'll get optional nasty redefinition warnings, or worse silently overriden routines in the utils namespace, which might lead to very hard to debug errors.