in reply to Re: Mixing OO & non OO code in a module
in thread Mixing OO & non OO code in a module

If your class doesn't get inherited, you can do it both ways using:
sub function { # Allow calling as a subroutine or class method shift if ($_[0] eq __PACKAGE__); ... }
If you're doing inheritance, you'd need something more involved, but you get the idea.

Remember: There's always one more bug.