On Fri, 5 May 2000, Stas Bekman wrote:
> OK, if this is the case, I'd prefer to have only one variable type -- an
> array - so $r->dir_config will always return a list. So if it's a sigular
> value, it'll be the first element. If you want it to be a hash -- you can
> have it as well. This makes thing simple and even eliminates the need for
> PerlSetVar, you can have only PerlAddVar for everything.
my @values = $r->dir_config->get('Key');
and
my %hash = $r->dir_config->get('Key');
already does that, regardless of using PerlSetVar or PerlAddVar.
although, PerlSetVar would end up with odd number of elements for %hash.
- Re: PerlAddVar ? Stas Bekman
- Re: PerlAddVar ? Matt Sergeant
- Re: PerlAddVar ? Richard Dice
- Re: PerlAddVar ? Stas Bekman
- Re: PerlAddVar ? Richard Dice
- Re: PerlAddVar ? Matt Sergeant
- Re: PerlAddVar ? Matt Sergeant
- Re: PerlAddVar ? Doug MacEachern
- Re: PerlAddVar ? Stas Bekman
- Re: PerlAddVar ? Matt Sergeant
- Re: PerlAddVar ? Doug MacEachern
- Re: PerlAddVar ? Stas Bekman
- Re: PerlAddVar ? Doug MacEachern
- Re: PerlAddVar ? Stas Bekman
- Re: PerlAddVar ? Drew Taylor
- Re: PerlAddVar ? brian moseley
- Re: PerlAddVar ? Doug MacEachern
- Re: PerlAddVar ? Matt Sergeant
- Re: PerlAddVar ? Doug MacEachern
- Re: PerlAddVar ? Matt Sergeant
- Re: CGI to mod_perl Pierre J. Nicolas
