Arthur,
You need to use $r->pnotes() to do this. $r->pnotes() is used to pass data
structures around between modules. There is a entry in the manual about it
so check there first.
Bill
--
Bill Desjardins - [EMAIL PROTECTED] - (USA) 305.205.8644
Unix/Network Administration - Perl/Mod_Perl/DB Development
http://www.CarRacing.com - Powered by Mod_Perl!
Free WebHosting for Race Tracks, Race Teams and Race Shops
On Tue, 4 Jan 2000, Arthur M. Kang wrote:
> Trying to tie $q to $r so I can just pass around a single variable to
> subs. Not working too well... Getting frustrated... Getting ready to
> punch computer... :)
>
> using Registry:
>
> my($r) = Apache->request;
> my($q) = new CGI::Apache;
> $r->notes('q',$q);
>
> &test($r);
>
> sub test {
> my($r) = shift;
> my($q) = $r->notes('q');
>
> print $q->param('test');
> }
>
> I'm trying to pass my $q in a fashion like the above example, but can't
> get it to work. If anyone has any insights or can provide some help,
> I'd really appreciate it. I've tried sending it as a reference, and all
> (ie: $r->notes('q',\$q))...Can't get it.
>
> Arthur
>