in reply to Re: Turning a sub inside out
in thread Turning a sub inside out

That's quite cool. The 'print' actually turns into a 'return' because HTTP::Daemon will take a function reference as contents for a HTTP return object, and then keep calling that function ref until it gets an undef. This is a much better form of the solution than the one I had in mind. Thanks!

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: Re: Turning a sub inside out
by shotgunefx (Parson) on Mar 23, 2002 at 04:40 UTC
    You're welcome. The more I use closures, the more I like them. It's a bit to swallow but if you haven't already check out Why I like Functional Programming

    -Lee

    "To be civilized is to deny one's nature."