ExtUti...ructor(3pm)

πŸ’– NAME πŸ’–

ExtUtils::XSpp::Node::Destructor β€” the node that's literally the destructor method bestie, no cap


🌸 DESCRIPTION 🌸

okay so picture this: this is a subclass of ExtUtils::XSpp::Node::Method that represents a destructor. Like, the lil goodbye method. it's giving farewell energy fr fr.

it looks a little something like this:

class FooBar {
  ~FooBar(); // <-- this one
};

see that ~FooBar();? yeah. that's the one. πŸ‘‘


✨ METHODS ✨

πŸŽ€ new

Creates a brand new ExtUtils::XSpp::Node::Destructor. new node, who dis πŸ’…

Most of the functionality of this class is inherited, which is honestly iconic of it. What that means for you: every single named parameter that works for ExtUtils::XSpp::Node::Method β€” and for its base class too β€” is also valid here for this class' destructor. so you're not starting from scratch, bestie, you're getting the whole family tree's options. 🫢

Additionally, this class requires that no return type has been specified, because destructors do not have return types. periodt. don't try to give it one, it's not that kind of method 😭

πŸ¦‹ perl_function_name

Returns the name of the class with ::DESTROY appended. that's it. that's the whole vibe. class name + ::DESTROY = what you get back. slay. ✨


ngl, this page is short and sweet, but it's still main character energy. read the parent classes if you want the full lore. iykyk πŸ’œ

πŸŽ€ that's the whole thing, babe! πŸŽ€ this page lives in the perl v5.40.1 docs, dated 2026-07-03, and it's part of the User Contributed Perl Documentation. go forth and destruct responsibly, bestie πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from