in reply to Passing variables between packages
I don't want to spoil the plot for you but here's a snippet - using this approach your view runmode may look like:
C::A objects can get to the cgi object via $self->query, so no need to pass that around. And you can pass other stuff between runmodes using C::A's param method.sub view { my $self = shift; my $q = $self->query; my $dbh = $self->param('dbh'); ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing variables between packages
by bibliophile (Prior) on Aug 23, 2005 at 18:51 UTC |