On Mon, Sep 24, 2001 at 09:29:10PM -0400, Geoffrey Young wrote:
>
> >currently we just grab the apr_table_get implementation for
> >APR::Table::get(). The problem is that if there is more than one value
> >added for the same key, get() will return one of these values.
>
> in 1.x this is only true in a scalar context (and is documented as such in
> the Apache::Table docs I believe)
Neat, didn't even know that ;-)
> >Undetermined which. Is this normal? e.g. I was trying to test
> >$r->dir_config->get('key'), and there are a few values for 'key' (added
> >via PerlAddVar),
>
> my @arr = $r->dir_config->get('key');
my @arr = $r->dir_config->{'key'}
should also be avaliable
>
> is the 1.x syntax. I am actually very fond of this and wouldn't want to see
> it change in 2.0 without due discourse (were I to get a vote ;)
I agree. I just looked at the 1.x implementation and I'll try to squeeze it in
APR::Table. Shouldn't be too complicated or too long at all.
> --Geoff
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Index: todo/api.txt
===================================================================
RCS file: /home/anoncvs/mod_perl-2-cvs/todo/api.txt,v
retrieving revision 1.4
diff -u -U5 -b -B -I'$Id' -I'$Revision' -r1.4 api.txt
--- todo/api.txt 2001/09/15 18:17:31 1.4
+++ todo/api.txt 2001/09/25 01:35:30
@@ -7,10 +7,13 @@
APR::Table tie mechanism:
$r->headers_out->{KEY} is not currently supported
might want to make this optional, disabled by default
+my @arr = $table->get('key') vs my $key = $table->get('key');
+not implemented
+
$r->finfo:
need apr_finfo_t <-> struct stat conversion (might already be there,
haven't looked close enough yet)
$r->header_{in,out}:
--
+----------------------------------------------------+
| Philippe M. Chiasson <[EMAIL PROTECTED]> |
+----------------------------------------------------+
| F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5 |
+----------------------------------------------------+
gethostent not implemented : Your C library apparently
doesn't implement gethostent(), probably because if it did,
it'd feel morally obligated to return every hostname on the
Internet.
-- perldiag(1)
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
PGP signature