title: How do you explicitly destroy an object in Perl?
body: <p>Let's say I have a Perl class that has a DESTROY method. This method is used to implicitly release an external resource, such as a file handle or database transaction.</p>
  
  <p>Given an instance of this class, I would like to explicitly destroy it. The primary purpose of this is to cause the DESTROY method to be called so the external resource can be released. However, having the "object" itself released from memory would be an added benefit.</p>
  
  <p>How can I do this? I have considered directly calling the DESTROY method and undefining any variables that reference the object.</p>