On Wed, 28 Mar 2001, Edwards, Mark (CXO) wrote:

> Does anyone know of a way to redirect STDOUT to a variable?  If I call a
> subroutine from a module that prints a message to the screen, I want to
> suppress the output and capture it in a scalar or array. 
> 
> Any ideas??
>

Redirection is a one-time event that happens before or at the time a
file is opened you can't redirect STDOUT to a varaiable
only when STDOUT is used in a subroutine. You can change the redirection
while the file is open.

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to