> -----Original Message-----
> From: Nikolaus Rath [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 10:00 AM
> To: [EMAIL PROTECTED]
> Subject: Passing Objects with PerlSetVar
> 
> 
> Hello!
> 
> <Location Bla>
>    <Perl>
>          my $o = { "bar" => 1,
>                    "foo" => "com",
>                    "other" => 0 };
>          push @PerlSetVar, "Objekt, $o;
>    </Perl>
>    PerlHandler Bla   
> </Location>
> 
> And inside the Bla Handler:
> 
> my $o = $r->dir_config("Objekt");

I don't thing that will work.  dir_config() is an Apache::Table object,
which stringifies everything behind the scenes.

you can assign multiple values using PerlAddVar, though.

  PerlSetVar Foo one
  PerlAddVar Foo two

  my @list = $r->dir_config->get('Foo');

HTH

--Geoff

> 
> Is $o now still a complex object, so i could do $o->{"bar"}, or is it
> just a "normal" scalar value (like HAS283752)?
> 
>   - Nikolaus
> 
> -- 
> > Bekomme ich das mit einer wilden Kombination aus find, sed, cp und
> > xargs hin oder sollte ich besser ein Perlskript schreiben?
> Verwende Perl. Shell will man koennen, dann aber nicht verwenden."
>                                  - Marc Haber u. Kristian 
> Köhntopp, dcoum
> 

Reply via email to