in reply to STDOUT msg routing

Yes, all you need really is open, close and select. If you have the possibilities of multiple scripts/instances writing to the same destination file then you will want to think about locking too.

Replies are listed 'Best First'.
Re^2: STDOUT msg routing
by sandy105 (Scribe) on Feb 25, 2015 at 10:26 UTC

    oh .okay i actually tried it before i opened a file handle like

    open STDOUT, '>', "files.out"

    and then closed the filehandle at end of script , but it throws a compilation error at first print staement

      The way you showed is the usual way to redirect a filehandle to a (different) file in Perl.

      Maybe you can tell us the compilation error?