June Young writes:
> I installed perl5.6 on vms alpha v7.21 for our company. We noticed
> that the new perl undesirably outputs system error message both to STDOUT and
> STDERR. For example,

On VMS, the standard behavior for printing error messages on program
termination is to print to both SYS$OUTPUT and SYS$ERROR, unless they
are directed to the same device.

Previous versions of Perl didn't redirect SYS$OUTPUT (or SYS$ERROR)
when using command-line redirection (i.e,  doing >foo would send Perl's
STDOUT to foo, but didn't redirect SYS$OUTPUT...so Perl had no control
over where error messages were sent..)

Doing something like:
    $ perl test.pl >out.txt 2>&1

will set both SYS$OUTPUT and SYS$ERROR to point to out.txt, so you only
get one error message.  But I'm afraid that the answer to your question
is that you were relying on a mis-feature of earlier VMS Perl versions.
--
 Drexel University       \V                    --Chuck Lane
======]---------->--------*------------<-------[===========
     (215) 895-1545     _/ \  Particle Physics
FAX: (215) 895-5934     /\ /~~~~~~~~~~~        [EMAIL PROTECTED]

Reply via email to