sonalig has asked for the wisdom of the Perl Monks concerning the following question:

Hello, How can I run the 'cd' command from perl script? Thanks

Replies are listed 'Best First'.
Re: Execute cd command from perl script
by pc88mxer (Vicar) on Jun 19, 2008 at 16:43 UTC
    To affect the current working directory of the perl process, use the chdir() function.
Re: Execute cd command from perl script
by Tanktalus (Canon) on Jun 19, 2008 at 16:39 UTC

    Check the FAQ for 'environment'.

    (Or, if you aren't trying to affect your parent process' envrionment, look at chdir.)

A reply falls below the community's threshold of quality. You may see it by logging in.