in reply to Futher contemplations on CGI -- putting a pipe paradigm into scripts.
You might want to check out CGI::Application
fong