http://qs1969.pair.com?node_id=682506


in reply to Re: Perl under windows: mysteriously skipping over subroutine
in thread Perl under windows: mysteriously skipping over subroutine

Bingo! Adding 'local(*PTH_DH);' to pathempty() fixes it. Thanks for the nudge in the right direction to look.