in reply to Win32::Daemon et al

pushd is a shell command, it does not exist in Perl (although there may be a module which does it).
@INC is a Perl variable, it does not exist in the shell. You cannot mix the two.

If you wish to use a module from the user's home directory which, considering your use of a bare `cd`, is what you are trying to do, then:
use lib $ENV{'HOME'};

Update: Hangon! The title of this question is Win32::Daemon. My comments still apply (for 'shell' read 'cmd.exe') except that the HOME environment variable probably will not exist.

Replies are listed 'Best First'.
Re^2: Win32::Daemon et al
by OzVegan (Acolyte) on Sep 14, 2009 at 03:51 UTC
    Thanks. pushd was a typo because I keep pushd'ing everywhere in Windows. I was using push though so I'll go with your suggestion. Ta.