trammell has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (object-oriented programming)
For example, say I have a class 'Foo' that is used thusly:
but for some Very Good Reason, we want to be able to call it in a more procedural fashion:use Foo; my $f = Foo->new(%args); my $g = $f->frobnicate;
Is there a good way of doing this? Is there a good reason not to do this?use Foo 'frobnicate'; my $g = frobnicate($args);
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom