in reply to Passing variables between packages
And so on. Configure your singletons, then let your modules also use those same singletons.MyDatabase->configure(...); MyCGI->configure(...); MyTemplate->configure(...); ... my $action = MyCGI->get_param('action'); if ($action eq 'start') { view('start'); } elsif ($action eq 'finish') { view('finish'); }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|