in reply to Re: ActivePERL is the devil?
in thread ActivePERL is the devil?

cd? AFAIK cd is a shell builtin, and perl has chdir.
He was using cd to change the current drive, not the current working directory. I don't know much about windows perl, so can't say whether that's a reasonable thing to try or not, or whether perl's chdir would have done as well.

Replies are listed 'Best First'.
Re^3: ActivePERL is the devil?
by runrig (Abbot) on Jun 08, 2007 at 01:07 UTC
    He was using cd to change the current drive, not the current working directory. I don't know much about windows perl, so can't say whether that's a reasonable thing to try or not...

    chdir will change drives as well as directories. But as I said previously, 'system("cd ...")' won't stay cd'd in your perl program, just in the command shell.