On Sun, 2003-06-29 at 14:46, Matt Sergeant wrote: > On Sunday, Jun 29, 2003, at 03:00 Europe/London, Robert Ferney wrote: > >> From a taglib, is it possible to get to an apache object? > > Specificaly I need to look up some Perlvar set options. > AxKit::Apache->request will give you the request object.
Trying this and I'm not getting anything that makes sense. The module gives me output, and does not crash, however, it's not the results I expected. What am I missing here? -Robert Ferney ---- Start code from Module ---- package Test::XSP::DBI; use Apache::AxKit::Language::XSP::TaglibHelper; use Data::Dumper; $NS = "http://ferney.org/test/xsp/dbi/"; @EXPORT_TAGLIB = ( 'request()', ); @ISA = qw( Apache::AxKit::Language::XSP::TaglibHelper ); use strict; sub request { my $self = {}; my $r = AxKit::Apache->request(); # From the .htaccess file # PerlSetVar AxKit_DBI_table users if ($r) { $self->{'table'} = $r->dir_config('AxKit_DBI_table'); } warn Dumper($self,$r);# return $self; } 1; --- end code from module --- --- Begin Error Log snippet --- $VAR1 = { 'table' => undef }; $VAR2 = bless( do{\(my $o = 141524000)}, 'AxKit::Apache' ); Test::XSP::DBI::request() called at (eval 164) line 18 ... remaining trace output clipped ... --- End Error Log Snippet --- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
