Re: Pure perl trick that Apache::Table might be doing in C (fwd)

"David E. Wheeler" <[email protected]> Sun, 12 Jul 2009 09:32:48 -0700
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Jul 11, 2009, at 9:36 PM, Dave Rolsky wrote:

> "HTML::Mason::FakeTable is designed to behave exactly like  
> Apache::Table, and differs in only one respect. When a given key has  
> multiple values in an Apache::Table object, one can fetch each of  
> the values for that key using Perl's each operator"
>
> I took that as an interesting exercise, and not having written a tie  
> since the late 90s thought to give it a go. The result is a class  
> that achieves the interface of Apache::Table, at least in that  
> respect (see attached). I made it a modulino so you can give it a  
> spin easily.

Hrm. Looking at my Apache::FakeTable module, I believe that issue was  
addressed:

0.02  Thu Sep  4 05:32:22 2003
         - Fixed behavior of each to match that of Apache::Table. It  
will now
           return multiple key/value pairs for a single key that has  
multiple
           values.

Feel free to pull that into Mason if you like.

Best,

David

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge