Apache::DBI connection cache

2002-05-22 Thread Ask Bjoern Hansen
Apache::DBI is turning the argument hashref into the cache key with the following code, my ($key, $val); while (($key,$val) = each %{$args[3]}) { $Idx .= $;$key=$val; } can anyone think of a good reason not to change that to something like map { $Idx .=

Re: Apache::DBI connection cache

2002-05-22 Thread Perrin Harkins
Ask Bjoern Hansen wrote: Apache::DBI is turning the argument hashref into the cache key with the following code, my ($key, $val); while (($key,$val) = each %{$args[3]}) { $Idx .= $;$key=$val; } can anyone think of a good reason not to change that to

Re: Apache::DBI connection cache

2002-05-22 Thread Ask Bjoern Hansen
On Wed, 22 May 2002, Perrin Harkins wrote: Apache::DBI is turning the argument hashref into the cache key with the following code, [...] can anyone think of a good reason not to change that to something like map { $Idx .= $;$_=$args[3]-{$_} } sort keys %{$args[3]}; Good find.

Re: Apache::DBI connection cache

2002-05-22 Thread Geoffrey Young
Ask Bjoern Hansen wrote: Apache::DBI is turning the argument hashref into the cache key with the following code, my ($key, $val); while (($key,$val) = each %{$args[3]}) { $Idx .= $;$key=$val; } can anyone think of a good reason not to change that to