in reply to Bad File Descriptor Error

It is a few years ago since I did a bit of Windows programming to season my CV, but as I recall, '\' as a directory separator might be the issue -- the Unix-style '/' is portable* using Perl.

(* update: i.e. Windows-compatible).

-M

Free your mind