----- Original Message ----- 
From: "Thomas R Wyant_III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 8:14 PM
Subject: Re: redirecting STDERR to STDOUT inside a program


> 
> Patrick,
> 
> VMS is not Unix, but you _may_ be able to get your Unix syntax to work if
> you hold your tongue correctly.

Or you might try this:

print "1. this goes to standard out\n";
warn "1. this goes to standard error\n";
open(STDERR, ">&STDOUT");
print "2. this goes to standard out\n";
warn "2. this goes to standard error\n";

And call it with "perl myscript.pl > outfile.txt"

Maarten.

Reply via email to