I implemented something similar to that for a column I wrote. However, if I started over today, I'd probably strongly consider POE.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In Section
Cool Uses for Perl