in reply to Re: Doesn't work in Cygwin
in thread Doesn't work in Cygwin

Oops, that was an error in copying the code to PerlMonks (as I changed the variable names when doing so). They are both the same.