Multiple choice technology programming languages

Within Perl, which operator is used to change the working directory?

  1. cd

  2. chdir

  3. pwd

  4. wd

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Perl uses the chdir() function to change the current working directory. The 'cd' command is used in Unix shells, not in Perl. The pwd() function returns the current directory, and 'wd' is not a valid Perl function.