in reply to Redirecting STDOUT to a variable

You'd just use a TIEHANDLE.
See perldoc tie and perldoc Tie::Handle.

-- 
ash/asksh <ask@unixmonks.net>