Multiple choice technology programming languages

Which Perl function is used to change the name of a file?

  1. nameas

  2. rename

  3. name

  4. now_known_as

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

The built-in rename function in Perl is used to change a file's name or move it across directories. Other options like nameas, name, and now_known_as do not exist in Perl's standard function library, making them incorrect distractors.