A test project leads me to ask how do I 'catch' STDOUT when embedding Perl56.dll (ActiveState) in a MFC/VC++ program? The embedding portion works fine---but I'd like better control over the environment, i.e. not misplace stdout and friends. Can anyone give me any pointers, links, advice? I've tried a number of re-direction traps using _dup and _dup2, so far with no luck. What I'd really like is to redirect to a buffer for display and manipulation.