iDev iDev - 1 year ago 215
Perl Question

Difference between cd and function chdir

What is the difference between the

shell command and the Perl function
? Please can you explain with an example?

Answer Source

The cd command changes the current directory of a shell process; the Perl chdir function changes the current directory of a Perl process. They're exactly the same thing, just spelled differently.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download