When a script is executed STDOUT and/or STDERR may
be redirected
as follows:

   perl script.pl  > log.txt   or
   perl script.pl 2> log.txt   or
   perl script.pl |  taker.pl  etc,

and all the other variations.

My question is this:

Can I find out
  1) whether redirection has been specified?
  2) if it has, which handle - STDOUT and/or
STDERR - has been redirected?
  3) and also, if redirected to a file or another
script, the name of
     the file or script?

*any* clues would be most appreciated.


Phil Rafferty
 

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to