Patrick, Why not just use 2>&1? No, it's not VMS syntax. _NO_ Unix-style redirection is VMS syntax. So the VMS version of Perl provides it in so far as it is able. Sample run appended, with node names removed to protect the guilty.
Interestingly, I have worked with VMS for quite a while, and I can't make your games with sys$output and sys$error work either. I even tried setting $| = 1 in the Perl script. It didn't help. I didn't try an explicit close on STDOUT and STDERR, but if the Unix-style redirect is what you'd like to do, go with it! Tom Wyant $ type trw.tmp print "This line was sent to STDOUT.\n"; warn "This line was sent to STDERR.\n"; $ ! $ ! The following line demonstrates the redirection $ ! $ perl trw.tmp 2>&1 >trw2.tmp $ type trw2.tmp This line was sent to STDOUT. This line was sent to STDERR. $ perl -v This is perl, v5.6.1 built for VMS_AXP Copyright 1987-2001, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. $ pipe sho sys|search sys$input vms OpenVMS V7.1-1H2 on node <censored> 13-JAN-2003 16:13:48.45 Uptime 166 03:03:47 This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean http://www.DuPont.com/corp/email_disclaimer.html
