I have used a similar method for sharing database handles amongst several different classes.my $log = Log::Common->new; my $foo = Foo::Foo->new('log' => $log); my $bar = Foo::Bar->new('log' => $log); my $baz = Foo::Baz->new('log' => $log);
In reply to Re: Re: Sharing a log file across classes...
by Anonymous Monk
in thread Sharing a log file across classes...
by baphomet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |