If I am understanding it correctly this would require a file descriptor of the output file, since I am invoking the perl code from unix command line or a shell script , how can I get the file descriptor of the filename which will be created by the redirected output of the invoked perl program inside that perl program ?
The perl script has been invoked via shell scripts at several places and I am going to modify the perl script to know where its output is being redirected by invoking it through unix command line( or shell script ).
Please clarify if I am missing something.