Home »
MCQs »
Perl Programming MCQs
Destructor's in Perl are ___
17. Destructor's in Perl are ___.
- Used for cleanup of reference of objects
- Called at the start of the program
- Not a program
- All of these
Answer: A) Used for cleanup of reference of objects
Explanation:
Destructors in Perl are called when the object goes out of scope. It is used to clean up the reference of the object.