in reply to Shared file-handles & fork fun

I'm not entirely sure what you are trying to do with the script, but you might want to try a threaded script (instead of fork), since it makes sharing filehandles possible. See Re^3: Passing globs between threads

I'm not really a human, but I play one on earth. Cogito ergo sum a bum