perldoc > Template::Base

📖 NAME

Template::Base - Base class module implementing common functionality

🚀 Quick Reference

Use CaseCommandDescription
🔧 Object CreationMy::Module->new({ ... })Instantiate a new module object
âš ī¸ Error Handling$obj->error()Retrieve or set error message
🐛 Debugging$obj->debug('msg')Send debug message to STDERR
đŸ§Ŧ Subclassinguse base qw(Template::Base)Inherit base class functionality

📝 SYNOPSIS

package My::Module;
use base qw( Template::Base );

sub _init {
    my ($self, $config) = @_;
    $self->{ doodah } = $config->{ doodah }
        || return $self->error("No 'doodah' specified");
    return $self;
}

package main;

my $object = My::Module->new({ doodah => 'foobar' })
    || die My::Module->error();

📖 DESCRIPTION

Base class module which implements a constructor and error reporting functionality for various Template Toolkit modules.

âš™ī¸ PUBLIC METHODS

âœī¸ AUTHOR

Andy Wardley <abw AT wardley.org> <http://wardley.org/>

ÂŠī¸ COPYRIGHT

Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

🔗 SEE ALSO

Template

Template::Base
📖 NAME 🚀 Quick Reference 📝 SYNOPSIS 📖 DESCRIPTION âš™ī¸ PUBLIC METHODS âœī¸ AUTHOR ÂŠī¸ COPYRIGHT 🔗 SEE ALSO

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-08 03:00 @2600:1f28:365:80b0:6814:a048:8015:f4ec
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^