Perl Programming/Keywords/DESTROY

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: delete Keywords Next: die

The DESTROY keyword[edit | edit source]

DESTROY is a method that does something when the object is destroyed. This method will always be called by Perl at the appropriate time, unless the method is empty.

Syntax[edit | edit source]

  DESTROY

See also[edit | edit source]

Previous: delete Keywords Next: die