Google News
logo
Perl - Quiz(MCQ)
Destructor's in Perl are ___.
A)
Called at the start of the program
B)
Used for cleanup of reference of objects
C)
Not a program
D)
All of the above

Correct Answer :   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.

Advertisement