> -----Original Message-----
> From: Stas Bekman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 1:10 AM
> To: Philippe M . Chiasson
> Cc: Geoffrey Young; '[EMAIL PROTECTED] '
> Subject: Re: :Table::get implementation?
>
[snip]
>
>
> so in the scalar context it brings the first key found and in
> the list
> context the whole list.
yes
> Should we generate a warning if the above is
> called in the scalar context? Or is it OK, if you know that there is
> only one key?
well, if you want to mimic 1.x
my $key = $r->dir_config('key')
is valid (and more common), so I don't think it should produce a mandatory
warning.
however, if Doug gets around to implementing the LogLevel optimizations
someday maybe we could issue a warning at the debug level "Apache::Table key
%s truncated - call in list context" or something
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]