I'd normally make such things class methods - if I don't, I find I'm always forgetting to type My::Class::function(...) instead of My::Class->function(...), and it becomes a lot more convenient if I have the classname in a variable:
my $class = "My::Class"; my @coords = $class->look_at(something);
Hugo
In reply to Re: Mixing OO & non OO code in a module
by hv
in thread Mixing OO & non OO code in a module
by spatterson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |