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.
In reply to Re: Passing variables between packages
by merlyn
in thread Passing variables between packages
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |