in reply to Ruby: An Abbot breaks silencewind
While I think Perl's OO is rotten to the core, I don't
agree that making singletons in Perl is difficult. You
certainly don't need the convoluted code you showed!
package Logger; { my $instance; sub instance { return $instance if $instance; my $class = shift; $instance = bless {@_} => $class; } }
-- Abigail
In Section
Meditations