in reply to Re^2: use of <STDOUT>
in thread use of <STDOUT>

I would normally use cwd(). Strangely, when I am running the Perl interpreter that comes with cygwin installation, cwd() never seems to return anything...