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(); ...
|
|---|
| 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 |