perldoc > HTML::Mason::Component::Subcomponent

🏷️ NAME

HTML::Mason::Component::Subcomponent - Mason Subcomponent Class

🚀 Quick Reference

Use CaseCommandDescription
Check if it's a method or subcomponent$sub->is_methodReturns 1 if method, 0 if subcomponent
Get the owner component$sub->ownerReturns the component object that defined this subcomponent/method

📖 DESCRIPTION

This is a subclass of HTML::Mason::Component. Mason uses it to implement both subcomponents (defined by <%def>) and methods (defined by <%method>).

A subcomponent/method gets most of its properties from its owner. Note that the link from the subcomponent to its owner is a weak reference (to prevent circular references), so if you grab a subcomponent/method object, you should also grab and hold a reference to its owner. If the owner goes out of scope, the subcomponent/method object will become unusable.

🔧 METHODS

HTML::Mason::Component::Subcomponent
🏷️ NAME 🚀 Quick Reference 📖 DESCRIPTION 🔧 METHODS

Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-20 23:09 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format