On 2004-12-02, Jason Purdy <[EMAIL PROTECTED]> wrote: > I hope I'm not stepping on anyone's toes, but I've always wanted to > contribute to the cgiapp space! If someone's interested in taking over > or helping, let me know. > > I took a first crack at how the CAP::Stream module would work, doc-wise > and I put the pod doc up on my site for review: > > http://www.purdy.info/useperl/Stream.html
I like idea. > I'm not as uber-techno as most folks here, so I wasn't sure if you could > just have one method and the method be smart enough to figure out if the > first parameter was a filehandle or a scalar. HTML::TokeParser does this. One of the key lines is: my $type = (ref($_[0]) eq "SCALAR") ? "doc" : "file"; Mark -- http://mark.stosberg.com/ --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]