/usr/local/share/man/man3
NameSizeModeActions
App::Prove.3pm105080444editdlrm
App::Prove::State.3pm60050444editdlrm
App::Prove::State::Result.3pm56190444editdlrm
App::Prove::State::Result::Test.3pm50510444editdlrm
AppConfig.3pm352890444editdlrm
AppConfig::Args.3pm79920444editdlrm
AppConfig::CGI.3pm66090444editdlrm
AppConfig::File.3pm126140444editdlrm
AppConfig::Getopt.3pm74440444editdlrm
AppConfig::State.3pm249720444editdlrm
AppConfig::Sys.3pm66950444editdlrm
Archive::Tar.3pm440610444editdlrm
Archive::Tar::File.3pm110830444editdlrm
Archive::Zip.3pm699850444editdlrm
Archive::Zip::FAQ.3pm184370444editdlrm
Archive::Zip::MemberRead.3pm67340444editdlrm
Archive::Zip::Tree.3pm28750444editdlrm
B::COW.3pm51630444editdlrm
Canary::Stability.3pm37270444editdlrm
CDB_File.3pm143180444editdlrm
common::sense.3pm00444editdlrm
Compress::Raw::Bzip2.3pm134630444editdlrm
Compress::Raw::Zlib.3pm420820444editdlrm
Compress::Zlib.3pm387190444editdlrm
CPAN::Meta.3pm159230444editdlrm
CPAN::Meta::Converter.3pm65940444editdlrm
CPAN::Meta::Feature.3pm43220444editdlrm
CPAN::Meta::History.3pm78550444editdlrm
CPAN::Meta::History::Meta_1_0.3pm99730444editdlrm
CPAN::Meta::History::Meta_1_1.3pm124100444editdlrm
CPAN::Meta::History::Meta_1_2.3pm222240444editdlrm
CPAN::Meta::History::Meta_1_3.3pm239740444editdlrm
CPAN::Meta::History::Meta_1_4.3pm245650444editdlrm
CPAN::Meta::Merge.3pm52850444editdlrm
CPAN::Meta::Prereqs.3pm73800444editdlrm
CPAN::Meta::Requirements.3pm123080444editdlrm
CPAN::Meta::Spec.3pm455920444editdlrm
CPAN::Meta::Validator.3pm42150444editdlrm
CPAN::Meta::YAML.3pm42300444editdlrm
Crypt::OpenSSL::Random.3pm56340444editdlrm
Curses.3pm375800444editdlrm
Curses::UI.3pm156190444editdlrm
Curses::UI::Buttonbox.3pm89080444editdlrm
Curses::UI::Calendar.3pm82030444editdlrm
Curses::UI::Checkbox.3pm65090444editdlrm
Curses::UI::Color.3pm59030444editdlrm
Curses::UI::Common.3pm64980444editdlrm
Curses::UI::Container.3pm90410444editdlrm
Curses::UI::Dialog::Basic.3pm52130444editdlrm
Curses::UI::Dialog::Calendar.3pm47610444editdlrm
Curses::UI::Dialog::Dirbrowser.3pm53690444editdlrm
Curses::UI::Dialog::Error.3pm43070444editdlrm
Curses::UI::Dialog::Filebrowser.3pm68890444editdlrm
Curses::UI::Dialog::Progress.3pm57740444editdlrm
Curses::UI::Dialog::Question.3pm52770444editdlrm
Curses::UI::Dialog::Status.3pm47650444editdlrm
Curses::UI::Label.3pm73330444editdlrm
Curses::UI::Listbox.3pm119880444editdlrm
Curses::UI::Menubar.3pm81100444editdlrm
Curses::UI::Notebook.3pm91400444editdlrm
Curses::UI::PasswordEntry.3pm37430444editdlrm
Curses::UI::Popupmenu.3pm74310444editdlrm
Curses::UI::Progressbar.3pm58910444editdlrm
Curses::UI::Radiobuttonbox.3pm40690444editdlrm
Curses::UI::Searchable.3pm66680444editdlrm
Curses::UI::TextEditor.3pm141710444editdlrm
Curses::UI::TextEntry.3pm36230444editdlrm
Curses::UI::TextViewer.3pm36700444editdlrm
Curses::UI::Tutorial.3pm85550444editdlrm
Curses::UI::Widget.3pm256750444editdlrm
Curses::UI::Window.3pm50840444editdlrm
Cwd.3pm71830444editdlrm
Date::Format.3pm72910444editdlrm
Date::Language.3pm38090444editdlrm
Date::Language::Bulgarian.3pm36750444editdlrm
Date::Language::Hungarian.3pm30910444editdlrm
Date::Parse.3pm54020444editdlrm
Digest::SHA.3pm257590444editdlrm
Expect.3pm602290444editdlrm
ExtUtils::CBuilder.3pm119230444editdlrm
ExtUtils::CBuilder::Platform::Windows.3pm31170444editdlrm
ExtUtils::Command.3pm59420444editdlrm
ExtUtils::Command::MM.3pm57230444editdlrm
ExtUtils::Liblist.3pm126790444editdlrm
ExtUtils::MakeMaker.3pm793570444editdlrm
ExtUtils::MakeMaker::Config.3pm25870444editdlrm
ExtUtils::MakeMaker::FAQ.3pm268290444editdlrm
ExtUtils::MakeMaker::Locale.3pm111680444editdlrm
ExtUtils::MakeMaker::Tutorial.3pm83890444editdlrm
ExtUtils::Manifest.3pm119610444editdlrm
ExtUtils::Mkbootstrap.3pm34590444editdlrm
ExtUtils::Mksymlists.3pm66990444editdlrm
ExtUtils::MM.3pm28290444editdlrm
ExtUtils::MM_AIX.3pm30440444editdlrm
ExtUtils::MM_Any.3pm311290444editdlrm
ExtUtils::MM_BeOS.3pm27980444editdlrm
ExtUtils::MM_Cygwin.3pm35690444editdlrm
ExtUtils::MM_Darwin.3pm26880444editdlrm
ExtUtils::MM_DOS.3pm30210444editdlrm
ExtUtils::MM_MacOS.3pm29870444editdlrm
ExtUtils::MM_NW5.3pm32000444editdlrm
ExtUtils::MM_OS2.3pm28860444editdlrm
ExtUtils::MM_QNX.3pm29420444editdlrm
ExtUtils::MM_Unix.3pm214190444editdlrm
ExtUtils::MM_UWIN.3pm30510444editdlrm
ExtUtils::MM_VMS.3pm149000444editdlrm
ExtUtils::MM_VOS.3pm29260444editdlrm
ExtUtils::MM_Win32.3pm59190444editdlrm
ExtUtils::MM_Win95.3pm32760444editdlrm
ExtUtils::MY.3pm27640444editdlrm
ExtUtils::testlib.3pm26900444editdlrm
File::GlobMapper.3pm114470444editdlrm
File::HomeDir.3pm182120444editdlrm
File::HomeDir::Darwin.3pm32320444editdlrm
File::HomeDir::Darwin::Carbon.3pm35170444editdlrm
File::HomeDir::Darwin::Cocoa.3pm34460444editdlrm
File::HomeDir::Driver.3pm31010444editdlrm
File::HomeDir::FreeDesktop.3pm34870444editdlrm
File::HomeDir::MacOS9.3pm34990444editdlrm
File::HomeDir::Test.3pm35340444editdlrm
File::HomeDir::Unix.3pm36380444editdlrm
File::HomeDir::Windows.3pm48910444editdlrm
File::Path.3pm310300444editdlrm
File::Slurp.3pm236260444editdlrm
File::Spec.3pm137840444editdlrm
File::Spec::AmigaOS.3pm28260444editdlrm
File::Spec::Cygwin.3pm39570444editdlrm
File::Spec::Epoc.3pm32510444editdlrm
File::Spec::Functions.3pm37990444editdlrm
File::Spec::Mac.3pm186640444editdlrm
File::Spec::OS2.3pm31180444editdlrm
File::Spec::Unix.3pm98370444editdlrm
File::Spec::VMS.3pm63890444editdlrm
File::Spec::Win32.3pm64510444editdlrm
File::Temp.3pm367990444editdlrm
File::Which.3pm97460444editdlrm
Getopt::Long.3pm526470444editdlrm
HDB.3pm109470444editdlrm
HDB::CMDS.3pm188940444editdlrm
HDB::Encode.3pm78630444editdlrm
HDB::Object.3pm100570444editdlrm
HTML::AsSubs.3pm85860444editdlrm
HTML::Element.3pm707930444editdlrm
HTML::Element::traverse.3pm159840444editdlrm
HTML::Form.3pm281580444editdlrm
HTML::Parse.3pm82770444editdlrm
HTML::Tree.3pm99820444editdlrm
HTML::Tree::AboutObjects.3pm379180444editdlrm
HTML::Tree::AboutTrees.3pm585340444editdlrm
HTML::Tree::Scanning.3pm343850444editdlrm
HTML::TreeBuilder.3pm301380444editdlrm
HTTP::Tiny.3pm277090444editdlrm
IO::AtomicFile.3pm53810444editdlrm
IO::Compress::Base.3pm35060444editdlrm
IO::Compress::Bzip2.3pm232600444editdlrm
IO::Compress::Deflate.3pm267680444editdlrm
IO::Compress::FAQ.3pm267180444editdlrm
IO::Compress::Gzip.3pm344890444editdlrm
IO::Compress::RawDeflate.3pm271340444editdlrm
IO::Compress::Zip.3pm408700444editdlrm
IO::InnerFile.3pm60350444editdlrm
IO::Lines.3pm37830444editdlrm
IO::Pty.3pm85790444editdlrm
IO::Scalar.3pm106790444editdlrm
IO::ScalarArray.3pm105280444editdlrm
IO::Stringy.3pm40490444editdlrm
IO::Tty.3pm83480444editdlrm
IO::Tty::Constant.3pm100120444editdlrm
IO::Uncompress::AnyInflate.3pm328000444editdlrm
IO::Uncompress::AnyUncompress.3pm307670444editdlrm
IO::Uncompress::Base.3pm35180444editdlrm
IO::Uncompress::Bunzip2.3pm291710444editdlrm
IO::Uncompress::Gunzip.3pm317190444editdlrm
IO::Uncompress::Inflate.3pm299150444editdlrm
IO::Uncompress::RawInflate.3pm295630444editdlrm
IO::Uncompress::Unzip.3pm312790444editdlrm
IO::Wrap.3pm106640444editdlrm
IO::WrapTie.3pm149870444editdlrm
JSON::PP.3pm500800444editdlrm
JSON::PP::Boolean.3pm26670444editdlrm
JSON::Syck.3pm80940444editdlrm
JSON::XS.3pm890370444editdlrm
JSON::XS::Boolean.3pm28570444editdlrm
lib::core::only.3pm56470444editdlrm
local::lib.3pm313900444editdlrm
LWP.3pm285060444editdlrm
LWP::Authen::Ntlm.3pm74890444editdlrm
LWP::ConnCache.3pm99670444editdlrm
LWP::Debug.3pm56080444editdlrm
LWP::MemberMixin.3pm48210444editdlrm
LWP::Protocol.3pm83500444editdlrm
LWP::Protocol::https.3pm56840444editdlrm
LWP::RobotUA.3pm90220444editdlrm
LWP::Simple.3pm90160444editdlrm
LWP::UserAgent.3pm481560444editdlrm
lwpcook.3pm148380444editdlrm
lwptut.3pm324410444editdlrm
Module::Build.3pm445630444editdlrm
Module::Build::API.3pm892670444editdlrm
Module::Build::Authoring.3pm173630444editdlrm
Module::Build::Base.3pm51570444editdlrm
Module::Build::Bundling.3pm99990444editdlrm
Module::Build::Compat.3pm108850444editdlrm
Module::Build::ConfigData.3pm73880444editdlrm
Module::Build::Cookbook.3pm259460444editdlrm
Module::Build::Notes.3pm46900444editdlrm
Module::Build::Platform::aix.3pm44720444editdlrm
Module::Build::Platform::cygwin.3pm45050444editdlrm
Module::Build::Platform::darwin.3pm44910444editdlrm
Module::Build::Platform::Default.3pm44900444editdlrm
Module::Build::Platform::MacOS.3pm53980444editdlrm
Module::Build::Platform::os2.3pm44740444editdlrm
Module::Build::Platform::Unix.3pm44810444editdlrm
Module::Build::Platform::VMS.3pm78850444editdlrm
Module::Build::Platform::VOS.3pm44770444editdlrm
Module::Build::Platform::Windows.3pm45290444editdlrm
Module::Build::PPMMaker.3pm48860444editdlrm
Mozilla::CA.3pm35710444editdlrm
Net::CIDR::Lite.3pm95620444editdlrm
Net::Cmd.3pm115450444editdlrm
Net::Config.3pm81000444editdlrm
Net::Domain.3pm38350444editdlrm
Net::FTP.3pm273410444editdlrm
Net::FTP::dataconn.3pm39790444editdlrm
Net::HTTP.3pm163750444editdlrm
Net::HTTP::NB.3pm53940444editdlrm
Net::HTTPS.3pm54380444editdlrm
Net::IP.3pm276970444editdlrm
Net::libnetFAQ.3pm147460444editdlrm
Net::Netrc.3pm67290444editdlrm
Net::NNTP.3pm231930444editdlrm
Net::POP3.3pm122590444editdlrm
Net::SMTP.3pm188800444editdlrm
Net::SSLeay.3pm3493500444editdlrm
Net::SSLeay::Handle.3pm91270444editdlrm
Net::Time.3pm45240444editdlrm
ok.3pm28510444editdlrm
Parse::CPAN::Meta.3pm101870444editdlrm
POD2::DE::local::lib.3pm228790444editdlrm
POD2::PT_BR::local::lib.3pm227620444editdlrm
Socket.3pm340780444editdlrm
Sub::Identify.3pm50870444editdlrm
SUPER.3pm73940444editdlrm
Switch.3pm190140444editdlrm
TAP::Base.3pm34010444editdlrm
TAP::Formatter::Base.3pm62330444editdlrm
TAP::Formatter::Color.3pm37170444editdlrm
TAP::Formatter::Console.3pm27220444editdlrm
TAP::Formatter::Console::ParallelSession.3pm30650444editdlrm
TAP::Formatter::Console::Session.3pm28320444editdlrm
TAP::Formatter::File.3pm26930444editdlrm
TAP::Formatter::File::Session.3pm28470444editdlrm
TAP::Formatter::Session.3pm36030444editdlrm
TAP::Harness.3pm213000444editdlrm
TAP::Harness::Beyond.3pm191180444editdlrm
TAP::Harness::Env.3pm54670444editdlrm
TAP::Object.3pm44970444editdlrm
TAP::Parser.3pm422100444editdlrm
TAP::Parser::Aggregator.3pm80230444editdlrm
TAP::Parser::Grammar.3pm86470444editdlrm
TAP::Parser::Iterator.3pm49930444editdlrm
TAP::Parser::Iterator::Array.3pm37710444editdlrm
TAP::Parser::Iterator::Process.3pm46010444editdlrm
TAP::Parser::Iterator::Stream.3pm37120444editdlrm
TAP::Parser::IteratorFactory.3pm69040444editdlrm
TAP::Parser::Multiplexer.3pm46460444editdlrm
TAP::Parser::Result.3pm75120444editdlrm
TAP::Parser::Result::Bailout.3pm32930444editdlrm
TAP::Parser::Result::Comment.3pm31180444editdlrm
TAP::Parser::Result::Plan.3pm41730444editdlrm
TAP::Parser::Result::Pragma.3pm30730444editdlrm
TAP::Parser::Result::Test.3pm71140444editdlrm
TAP::Parser::Result::Unknown.3pm29730444editdlrm
TAP::Parser::Result::Version.3pm31540444editdlrm
TAP::Parser::Result::YAML.3pm30860444editdlrm
TAP::Parser::ResultFactory.3pm55230444editdlrm
TAP::Parser::Scheduler.3pm81130444editdlrm
TAP::Parser::Scheduler::Job.3pm43010444editdlrm
TAP::Parser::Scheduler::Spinner.3pm33460444editdlrm
TAP::Parser::Source.3pm81700444editdlrm
TAP::Parser::SourceHandler.3pm75590444editdlrm
TAP::Parser::SourceHandler::Executable.3pm52970444editdlrm
TAP::Parser::SourceHandler::File.3pm45670444editdlrm
TAP::Parser::SourceHandler::Handle.3pm44250444editdlrm
TAP::Parser::SourceHandler::Perl.3pm62620444editdlrm
TAP::Parser::SourceHandler::RawTAP.3pm44340444editdlrm
TAP::Parser::YAMLish::Reader.3pm39950444editdlrm
TAP::Parser::YAMLish::Writer.3pm48790444editdlrm
Template.3pm279090444editdlrm
Template::Base.3pm81490444editdlrm
Template::Config.3pm86870444editdlrm
Template::Constants.3pm78150444editdlrm
Template::Context.3pm266370444editdlrm
Template::Directive.3pm48210444editdlrm
Template::Document.3pm118290444editdlrm
Template::Exception.3pm67630444editdlrm
Template::FAQ.3pm145640444editdlrm
Template::Filters.3pm98170444editdlrm
Template::Grammar.3pm50390444editdlrm
Template::Iterator.3pm114130444editdlrm
Template::Manual.3pm63170444editdlrm
Template::Manual::Config.3pm795040444editdlrm
Template::Manual::Credits.3pm82460444editdlrm
Template::Manual::Directives.3pm772930444editdlrm
Template::Manual::Filters.3pm208100444editdlrm
Template::Manual::Internals.3pm234330444editdlrm
Template::Manual::Intro.3pm140920444editdlrm
Template::Manual::Plugins.3pm137800444editdlrm
Template::Manual::Syntax.3pm145490444editdlrm
Template::Manual::Variables.3pm331100444editdlrm
Template::Manual::Views.3pm259530444editdlrm
Template::Manual::VMethods.3pm281950444editdlrm
Template::Modules.3pm98270444editdlrm
Template::Namespace::Constants.3pm60020444editdlrm
Template::Parser.3pm99170444editdlrm
Template::Plugin.3pm109370444editdlrm
Template::Plugin::Assert.3pm54460444editdlrm
Template::Plugin::CGI.3pm61880444editdlrm
Template::Plugin::Datafile.3pm66010444editdlrm
Template::Plugin::Date.3pm95380444editdlrm
Template::Plugin::Directory.3pm119790444editdlrm
Template::Plugin::Dumper.3pm60780444editdlrm
Template::Plugin::File.3pm130090444editdlrm
Template::Plugin::Filter.3pm129360444editdlrm
Template::Plugin::Format.3pm48950444editdlrm
Template::Plugin::HTML.3pm78230444editdlrm
Template::Plugin::Image.3pm119500444editdlrm
Template::Plugin::Iterator.3pm50610444editdlrm
Template::Plugin::Math.3pm66230444editdlrm
Template::Plugin::Pod.3pm47840444editdlrm
Template::Plugin::Procedural.3pm56310444editdlrm
Template::Plugin::Scalar.3pm50320444editdlrm
Template::Plugin::String.3pm172630444editdlrm
Template::Plugin::Table.3pm111450444editdlrm
Template::Plugin::URL.3pm80800444editdlrm
Template::Plugin::View.3pm54790444editdlrm
Template::Plugin::Wrap.3pm64330444editdlrm
Template::Plugins.3pm97330444editdlrm
Template::Provider.3pm146780444editdlrm
Template::Service.3pm148130444editdlrm
Template::Stash.3pm119830444editdlrm
Template::Stash::Context.3pm71300444editdlrm
Template::Stash::XS.3pm66440444editdlrm
Template::Test.3pm155240444editdlrm
Template::Toolkit.3pm92270444editdlrm
Template::Tools.3pm50010444editdlrm
Template::Tools::tpage.3pm58060444editdlrm
Template::Tools::ttree.3pm165670444editdlrm
Template::Tutorial.3pm45660444editdlrm
Template::Tutorial::Datafile.3pm195390444editdlrm
Template::Tutorial::Web.3pm341180444editdlrm
Template::View.3pm126180444editdlrm
Template::VMethods.3pm46880444editdlrm
Term::ReadKey.3pm130290444editdlrm
Test2.3pm95560444editdlrm
Test2::API.3pm304240444editdlrm
Test2::API::Breakage.3pm49880444editdlrm
Test2::API::Context.3pm175740444editdlrm
Test2::API::Instance.3pm124040444editdlrm
Test2::API::Stack.3pm65680444editdlrm
Test2::Event.3pm91890444editdlrm
Test2::Event::Bail.3pm34700444editdlrm
Test2::Event::Diag.3pm33380444editdlrm
Test2::Event::Exception.3pm35200444editdlrm
Test2::Event::Generic.3pm76620444editdlrm
Test2::Event::Info.3pm42610444editdlrm
Test2::Event::Note.3pm33230444editdlrm
Test2::Event::Ok.3pm42550444editdlrm
Test2::Event::Plan.3pm39070444editdlrm
Test2::Event::Skip.3pm36650444editdlrm
Test2::Event::Subtest.3pm35730444editdlrm
Test2::Event::Waiting.3pm31070444editdlrm
Test2::Formatter.3pm52080444editdlrm
Test2::Formatter::TAP.3pm92550444editdlrm
Test2::Hub.3pm167550444editdlrm
Test2::Hub::Interceptor.3pm29370444editdlrm
Test2::Hub::Interceptor::Terminator.3pm29800444editdlrm
Test2::Hub::Subtest.3pm38030444editdlrm
Test2::IPC.3pm33240444editdlrm
Test2::IPC::Driver.3pm95120444editdlrm
Test2::IPC::Driver::Files.3pm38220444editdlrm
Test2::Transition.3pm184060444editdlrm
Test2::Util.3pm51230444editdlrm
Test2::Util::ExternalMeta.3pm55940444editdlrm
Test2::Util::HashBase.3pm74630444editdlrm
Test2::Util::Trace.3pm55770444editdlrm
Test::Builder.3pm269150444editdlrm
Test::Builder::Formatter.3pm36560444editdlrm
Test::Builder::IO::Scalar.3pm97400444editdlrm
Test::Builder::Module.3pm55670444editdlrm
Test::Builder::Tester.3pm115500444editdlrm
Test::Builder::Tester::Color.3pm31310444editdlrm
Test::Builder::TodoDiag.3pm31290444editdlrm
Test::Fatal.3pm93030444editdlrm
Test::HACKING.3pm92530444editdlrm
Test::Harness.3pm110280444editdlrm
Test::LeakTrace.3pm100220444editdlrm
Test::LeakTrace::JA.3pm123280444editdlrm
Test::LeakTrace::Script.3pm51400444editdlrm
Test::MockModule.3pm108180444editdlrm
Test::More.3pm432150444editdlrm
Test::More::UTF8.3pm36020444editdlrm
Test::RequiresInternet.3pm39440444editdlrm
Test::Simple.3pm91190444editdlrm
Test::Tester.3pm157810444editdlrm
Test::Tester::Capture.3pm29020444editdlrm
Test::Tester::CaptureRunner.3pm26730444editdlrm
Test::Tutorial.3pm242610444editdlrm
Test::use::ok.3pm38410444editdlrm
Test::Warnings.3pm142310444editdlrm
Text::Glob.3pm61060444editdlrm
Text::Template.3pm654990444editdlrm
Text::Template::Preprocess.3pm62700444editdlrm
Time::Zone.3pm34130444editdlrm
TimeDate.3pm23970444editdlrm
Try::Tiny.3pm203430444editdlrm
Types::Serialiser.3pm114730444editdlrm
Types::Serialiser::Error.3pm27050444editdlrm
version.3pm139370444editdlrm
version::Internals.3pm302870444editdlrm
WWW::Mechanize.3pm681960444editdlrm
WWW::Mechanize::Cookbook.3pm71590444editdlrm
WWW::Mechanize::Examples.3pm224900444editdlrm
WWW::Mechanize::FAQ.3pm243590444editdlrm
WWW::Mechanize::Image.3pm64900444editdlrm
WWW::Mechanize::Link.3pm65180444editdlrm
XML::NamespaceSupport.3pm130520444editdlrm
XML::Parser.3pm262960444editdlrm
XML::Parser::Expat.3pm267990444editdlrm
XML::Parser::Style::Debug.3pm44080444editdlrm
XML::Parser::Style::Objects.3pm48880444editdlrm
XML::Parser::Style::Stream.3pm59250444editdlrm
XML::Parser::Style::Subs.3pm48630444editdlrm
XML::Parser::Style::Tree.3pm55290444editdlrm
XML::SAX.3pm92290444editdlrm
XML::SAX::Base.3pm137040444editdlrm
XML::SAX::BuildSAXBase.3pm137000444editdlrm
XML::SAX::DocumentLocator.3pm52390444editdlrm
XML::SAX::Exception.3pm56220444editdlrm
XML::SAX::Expat.3pm64040444editdlrm
XML::SAX::Intro.3pm202200444editdlrm
XML::SAX::ParserFactory.3pm79190444editdlrm
XML::SAX::PurePerl.3pm61720444editdlrm
XML::SAX::PurePerl::Reader.3pm41030444editdlrm
XML::Simple.3pm655890444editdlrm
XML::Simple::FAQ.3pm272230444editdlrm
YAML.3pm299800444editdlrm
YAML::Any.3pm74870444editdlrm
YAML::Dumper.3pm47760444editdlrm
YAML::Dumper::Base.3pm46420444editdlrm
YAML::Error.3pm46810444editdlrm
YAML::Loader.3pm47660444editdlrm
YAML::Loader::Base.3pm46420444editdlrm
YAML::Marshall.3pm46400444editdlrm
YAML::Node.3pm67430444editdlrm
YAML::Syck.3pm108060444editdlrm
YAML::Tag.3pm44990444editdlrm
YAML::Types.3pm47160444editdlrm
Edit: /usr/local/share/man/man3/Template::Manual::Views.3pm (25953B)
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Template::Manual::Views 3" .TH Template::Manual::Views 3 "2014-04-23" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Template::Manual::Views \- Template Toolkit views (experimental) .SH "Overview" .IX Header "Overview" A view is effectively a collection of templates and/or variable definitions which can be passed around as a self-contained unit. This then represents a particular interface or presentation style for other objects or items of data. .PP You can use views to implement custom \*(L"skins\*(R" for an application or content set. You can use them to help simplify the presentation of common objects or data types. You can even use then to automate the presentation of complex data structures such as that generated in an \&\f(CW\*(C`XML::DOM\*(C'\fR tree or similar. You let an iterator do the walking, and the view does the talking (or in this case, the presenting). Voila \- you have view independent, structure shy traversal using templates. .PP In general, views can be used in a number of different ways to achieve several different things. They elegantly solve some problems which were otherwise difficult or complicated, and make easy some things that were previously hard. .PP At the moment, they're still very experimental. The directive syntax and underlying \s-1API\s0 are likely to change quite considerably over the next version or two. Please be very wary about building your multi-million dollar e\-commerce solutions based around this feature. .SH "Views as Template Collectors/Providers" .IX Header "Views as Template Collectors/Providers" The \f(CW\*(C`VIEW\*(C'\fR directive starts a view definition and includes a name by which the view can be referenced. The view definition continues up to the matching \f(CW\*(C`END\*(C'\fR directive. .PP .Vb 3 \& [% VIEW myview %] \& ... \& [% END %] .Ve .PP The first role of a view is to act as a collector and provider of templates. The \f(CW\*(C`include()\*(C'\fR method can be called on a view to effectively do the same thing as the \f(CW\*(C`INCLUDE\*(C'\fR directive. The template name is passed as the first argument, followed by any local variable definitions for the template. .PP .Vb 1 \& [% myview.include(\*(Aqheader\*(Aq, title=\*(AqThe Title\*(Aq) %] \& \& # equivalent to \& [% INCLUDE header title=\*(AqThe Title\*(Aq %] .Ve .PP Views accept a number of configuration options which can be used to control different aspects of their behaviour. The '\f(CW\*(C`prefix\*(C'\fR' and '\f(CW\*(C`suffix\*(C'\fR' options can be specified to add a fixed prefix and/or suffix to the name of each template. .PP .Vb 5 \& [% VIEW myview \& prefix = \*(Aqmy/\*(Aq \& suffix = \*(Aq.tt2\*(Aq ; \& END \& %] .Ve .PP Now the call .PP .Vb 1 \& [% myview.include(\*(Aqheader\*(Aq, title=\*(AqThe Title\*(Aq) %] .Ve .PP is equivalent to .PP .Vb 1 \& [% INCLUDE my/header.tt2 title=\*(AqThe Title\*(Aq %] .Ve .PP Views provide an \f(CW\*(C`AUTOLOAD\*(C'\fR method which maps method names to the \&\f(CW\*(C`include()\*(C'\fR method. Thus, the following are all equivalent: .PP .Vb 3 \& [% myview.include(\*(Aqheader\*(Aq, title=\*(AqHello World\*(Aq) %] \& [% myview.include_header(title=\*(AqHello World\*(Aq) %] \& [% myview.header(title=\*(AqHello World\*(Aq) %] .Ve .SH "Local BLOCK Definitions" .IX Header "Local BLOCK Definitions" A \f(CW\*(C`VIEW\*(C'\fR definition can include \f(CW\*(C`BLOCK\*(C'\fR definitions which remain local to the view. A request for a particular template will return a \f(CW\*(C`BLOCK\*(C'\fR, if defined, in preference to any other template of the same name. .PP .Vb 3 \& [% BLOCK foo %] \& public foo block \& [% END %] \& \& [% VIEW plain %] \& [% BLOCK foo %] \& plain foo block \& [% END %] \& [% END %] \& \& [% VIEW fancy %] \& [% BLOCK foo %] \& fancy foo block \& [% END %] \& [% END %] \& \& [% INCLUDE foo %] # public foo block \& [% plain.foo %] # plain foo block \& [% fancy.foo %] # fancy foo block .Ve .PP In addition to \f(CW\*(C`BLOCK\*(C'\fR definitions, a \f(CW\*(C`VIEW\*(C'\fR can contain any other template directives. The entire \f(CW\*(C`VIEW\*(C'\fR definition block is processed to initialise the view but no output is generated (this may change \s-1RSN \-\s0 and get stored as '\f(CW\*(C`output\*(C'\fR' item, subsequently accessible as \f(CW\*(C`[% view.output %]\*(C'\fR). However, directives that have side-effects, such as those that update a variable, will have noticeable consequences. .SH "Preserving Variable State within Views" .IX Header "Preserving Variable State within Views" Views can also be used to save the values of any existing variables, or to create new ones at the point at which the view is defined. Unlike simple template metadata (\f(CW\*(C`META\*(C'\fR) which can only contain static string values, the view initialisation block can contain any template directives and generate any kind of dynamic output and/or data items. .PP .Vb 5 \& [% VIEW my_web_site %] \& [% view.title = title or \*(AqMy Cool Web Site\*(Aq %] \& [% view.author = "$abw.name, $abw.email" %] \& [% view.sidebar = INCLUDE my/sidebar.tt2 %] \& [% END %] .Ve .PP Note that additional data items can be specified as arguments to the \f(CW\*(C`VIEW\*(C'\fR directive. Anything that doesn't look like a configuration parameter is assumed to be a data item. This can be a little hazardous, of course, because you never know when a new configuration item might get added which interferes with your data. .PP .Vb 10 \& [% VIEW my_web_site \& # config options \& prefix = \*(Aqmy/\*(Aq \& # misc data \& title = title or \*(AqMy Cool Web Site\*(Aq \& author = "$abw.name, $abw.email" \& sidebar = INCLUDE my/sidebar.tt2 \& %] \& ... \& [% END %] .Ve .PP Outside of the view definition you can access the view variables as, for example: .PP .Vb 1 \& [% my_web_site.title %] .Ve .PP One important feature is the equivalence of simple variables and templates. You can implement the view item '\f(CW\*(C`title\*(C'\fR' as a simple variable, a template defined in an external file, possibly with a prefix/suffix automatically appended, or as a local \f(CW\*(C`BLOCK\*(C'\fR definition within the \f(CW\*(C`[% VIEW %] ... [% END %]\*(C'\fR definition. If you use the syntax above then the view will Do The Right Thing to return the appropriate output. .PP At the \f(CW\*(C`END\*(C'\fR of the \f(CW\*(C`VIEW\*(C'\fR definition the view is \*(L"sealed\*(R" to prevent you from accidentally updating any variable values. If you attempt to change the value of a variable after the \f(CW\*(C`END\*(C'\fR of the \f(CW\*(C`VIEW\*(C'\fR definition block then a \f(CW\*(C`view\*(C'\fR error will be thrown. .PP .Vb 6 \& [% TRY; \& my_web_site.title = \*(AqNew Title\*(Aq; \& CATCH; \& error; \& END \& %] .Ve .PP The error above will be reported as: .PP .Vb 1 \& view error \- cannot update item in sealed view: title .Ve .PP The same is true if you pass a parameter to a view variable. This is interpreted as an attempt to update the variable and will raise the same warning. .PP .Vb 1 \& [% my_web_site.title(\*(AqNew Title\*(Aq) %] # view error! .Ve .PP You can set the \f(CW\*(C`silent\*(C'\fR parameter to have the view ignore these parameters and simply return the variable value. .PP .Vb 6 \& [% VIEW my_web_site \& silent = 1 \& title = title or \*(AqMy Cool Web Site\*(Aq \& # ... ; \& END \& %] \& \& [% my_web_site.title(\*(AqBlah Blah\*(Aq) %] # My Cool Web Site .Ve .PP Alternately, you can specify that a view is unsealed allowing existing variables to be updated and new variables defined. .PP .Vb 6 \& [% VIEW my_web_site \& sealed = 0 \& title = title or \*(AqMy Cool Web Site\*(Aq \& # ... ; \& END \& %] \& \& [% my_web_site.title(\*(AqBlah Blah\*(Aq) %] # Blah Blah \& [% my_web_site.title %] # Blah Blah .Ve .SS "Inheritance, Delegation and Reuse" .IX Subsection "Inheritance, Delegation and Reuse" Views can be inherited from previously defined views by use of the \f(CW\*(C`base\*(C'\fR parameter. This example shows how a base class view is defined which applies a \f(CW\*(C`view/default/\*(C'\fR prefix to all template names. .PP .Vb 4 \& [% VIEW my.view.default \& prefix = \*(Aqview/default/\*(Aq; \& END \& %] .Ve .PP Thus the directive: .PP .Vb 1 \& [% my.view.default.header(title=\*(AqHello World\*(Aq) %] .Ve .PP is now equivalent to: .PP .Vb 1 \& [% INCLUDE view/default/header title=\*(AqHello World\*(Aq %] .Ve .PP A second view can be defined which specifies the default view as a base. .PP .Vb 5 \& [% VIEW my.view.fancy \& base = my.view.default \& prefix = \*(Aqview/fancy/\*(Aq; \& END \& %] .Ve .PP Now the directive: .PP .Vb 1 \& [% my.view.fancy.header(title=\*(AqHello World\*(Aq) %] .Ve .PP will resolve to: .PP .Vb 1 \& [% INCLUDE view/fancy/header title=\*(AqHello World\*(Aq %] .Ve .PP or if that doesn't exist, it will be handled by the base view as: .PP .Vb 1 \& [% INCLUDE view/default/header title=\*(AqHello World\*(Aq %] .Ve .PP When a parent view is specified via the \f(CW\*(C`base\*(C'\fR parameter, the delegation of a view to its parent for fetching templates and accessing user defined variables is automatic. You can also implement your own inheritance, delegation or other reuse patterns by explicitly delegating to other views. .PP .Vb 3 \& [% BLOCK foo %] \& public foo block \& [% END %] \& \& [% VIEW plain %] \& [% BLOCK foo %] \& [% PROCESS foo %] \& [% END %] \& [% END %] \& \& [% VIEW fancy %] \& [% BLOCK foo %] \& [% plain.foo | replace(\*(Aqplain\*(Aq, \*(Aqfancy\*(Aq) %] \& [% END %] \& [% END %] \& \& [% plain.foo %] # public foo block \& [% fancy.foo %] # public foo block .Ve .PP Note that the regular \f(CW\*(C`INCLUDE/PROCESS/WRAPPER\*(C'\fR directives work entirely independently of views and will always get the original, unaltered template name rather than any local per-view definition. .SS "Self-Reference" .IX Subsection "Self-Reference" A reference to the view object under definition is available with the \&\f(CW\*(C`VIEW ... END\*(C'\fR block by its specified name and also by the special name \&'\f(CW\*(C`view\*(C'\fR' (similar to the \f(CW\*(C`my $self = shift;\*(C'\fR in a Perl method or the \&'\f(CW\*(C`this\*(C'\fR' pointer in \*(C+, etc). The view is initially unsealed allowing any data items to be defined and updated within the \f(CW\*(C`VIEW ... END\*(C'\fR block. The view is automatically sealed at the end of the definition block, preventing any view data from being subsequently changed. .PP (\s-1NOTE:\s0 sealing should be optional. As well as sealing a view to prevent updates (\f(CW\*(C`SEALED\*(C'\fR), it should be possible to set an option in the view to allow external contexts to update existing variables (\f(CW\*(C`UPDATE\*(C'\fR) or even create totally new view variables (\f(CW\*(C`CREATE\*(C'\fR)). .PP .Vb 5 \& [% VIEW fancy %] \& [% fancy.title = \*(AqMy Fancy Title\*(Aq %] \& [% fancy.author = \*(AqFrank Open\*(Aq %] \& [% fancy.col = { bg => \*(Aq#ffffff\*(Aq, bar => \*(Aq#a0a0ff\*(Aq } %] \& [% END %] .Ve .PP or .PP .Vb 5 \& [% VIEW fancy %] \& [% view.title = \*(AqMy Fancy Title\*(Aq %] \& [% view.author = \*(AqFrank Open\*(Aq %] \& [% view.col = { bg => \*(Aq#ffffff\*(Aq, bar => \*(Aq#a0a0ff\*(Aq } %] \& [% END %] .Ve .PP It makes no real difference in this case if you refer to the view by its name, '\f(CW\*(C`fancy\*(C'\fR', or by the general name, '\f(CW\*(C`view\*(C'\fR'. Outside of the view block, however, you should always use the given name, '\f(CW\*(C`fancy\*(C'\fR': .PP .Vb 3 \& [% fancy.title %] \& [% fancy.author %] \& [% fancy.col.bg %] .Ve .PP The choice of given name or '\f(CW\*(C`view\*(C'\fR' is much more important when it comes to \f(CW\*(C`BLOCK\*(C'\fR definitions within a \f(CW\*(C`VIEW\*(C'\fR. It is generally recommended that you use '\f(CW\*(C`view\*(C'\fR' inside a \f(CW\*(C`VIEW\*(C'\fR definition because this is guaranteed to be correctly defined at any point in the future when the block gets called. The original name of the view might have long since been changed or reused but the self-reference via '\f(CW\*(C`view\*(C'\fR' should always be intact and valid. .PP Take the following \s-1VIEW\s0 as an example: .PP .Vb 6 \& [% VIEW foo %] \& [% view.title = \*(AqHello World\*(Aq %] \& [% BLOCK header %] \& Title: [% view.title %] \& [% END %] \& [% END %] .Ve .PP Even if we rename the view, or create a new \f(CW\*(C`foo\*(C'\fR variable, the header block still correctly accesses the \f(CW\*(C`title\*(C'\fR attribute of the view to which it belongs. Whenever a view \f(CW\*(C`BLOCK\*(C'\fR is processed, the \f(CW\*(C`view\*(C'\fR variable is always updated to contain the correct reference to the view object to which it belongs. .PP .Vb 3 \& [% bar = foo %] \& [% foo = { title => "New Foo" } %] # no problem \& [% bar.header %] # => Title: Hello World .Ve .SS "Saving References to External Views" .IX Subsection "Saving References to External Views" When it comes to view inheritance, it's always a good idea to take a local copy of a parent or delegate view and store it as an attribute within the view for later use. This ensures that the correct view reference is always available, even if the external name of a view has been changed. .PP .Vb 3 \& [% VIEW plain %] \& ... \& [% END %] \& \& [% VIEW fancy %] \& [% view.plain = plain %] \& [% BLOCK foo %] \& [% view.plain.foo | replace(\*(Aqplain\*(Aq, \*(Aqfancy\*(Aq) %] \& [% END %] \& [% END %] \& \& [% plain.foo %] # => public foo block \& [% plain = \*(Aqblah\*(Aq %] # no problem \& [% fancy.foo %] # => public foo block .Ve .SS "Views as Data Presenters" .IX Subsection "Views as Data Presenters" Another key role of a view is to act as a dispatcher to automatically apply the correct template to present a particular object or data item. This is handled via the \f(CW\*(C`print()\*(C'\fR method. .PP Here's an example: .PP .Vb 1 \& [% VIEW foo %] \& \& [% BLOCK text %] \& Some text: [% item %] \& [% END %] \& \& [% BLOCK hash %] \& a hash: \& [% FOREACH key = item.keys.sort \-%] \& [% key %] => [% item.$key %] \& [% END \-%] \& [% END %] \& \& [% BLOCK list %] \& a list: [% item.sort.join(\*(Aq, \*(Aq) %] \& [% END %] \& \& [% END %] .Ve .PP We can now use the view to print text, hashes or lists. The \f(CW\*(C`print()\*(C'\fR method includes the right template depending on the typing of the argument (or arguments) passed. .PP .Vb 3 \& [% some_text = \*(AqI read the news today, oh boy.\*(Aq %] \& [% a_hash = { house => \*(AqLords\*(Aq, hall => \*(AqAlbert\*(Aq } %] \& [% a_list = [ \*(Aqsure\*(Aq, \*(AqNobody\*(Aq, \*(Aqreally\*(Aq ] %] \& \& [% view.print(some_text) %] \& # Some text: I read the news today, oh boy. \& \& [% view.print(a_hash) %] \& # a hash: \& hall => Albert \& house => Lords \& [% view.print(a_list) %] \& # a list: Nobody, really, sure .Ve .PP You can also provide templates to print objects of any other class. The class name is mapped to a template name with all non-word character sequences such as '\f(CW\*(C`::\*(C'\fR' converted to a single '\f(CW\*(C`_\*(C'\fR'. .PP .Vb 7 \& [% VIEW foo %] \& [% BLOCK Foo_Bar %] \& a Foo::Bar object: \& thingies: [% view.print(item.thingies) %] \& doodahs: [% view.print(item.doodahs) %] \& [% END %] \& [% END %] \& \& [% USE fubar = Foo::Bar(...) %] \& \& [% foo.print(fubar) %] .Ve .PP Note how we use the view object to display various items within the objects ('\f(CW\*(C`thingies\*(C'\fR' and '\f(CW\*(C`doodahs\*(C'\fR'). We don't need to worry what kind of data these represent (text, list, hash, etc) because we can let the view worry about it, automatically mapping the data type to the correct template. .PP Views may define their own type => template map. .PP .Vb 11 \& [% VIEW foo \& map = { TEXT => \*(Aqplain_text\*(Aq, \& ARRAY => \*(Aqshow_list\*(Aq, \& HASH => \*(Aqshow_hash\*(Aq, \& My::Module => \*(Aqtemplate_name\*(Aq \& default => \*(Aqany_old_data\*(Aq \& } \& %] \& [% BLOCK plain_text %] \& ... \& [% END %] \& \& ... \& [% END %] .Ve .PP They can also provide a \f(CW\*(C`default\*(C'\fR map entry, specified as part of the \f(CW\*(C`map\*(C'\fR hash or as a parameter by itself. .PP .Vb 6 \& [% VIEW foo \& map = { ... }, \& default = \*(Aqwhatever\*(Aq \& %] \& ... \& [% END %] .Ve .PP or .PP .Vb 6 \& [% VIEW foo %] \& [% view.map = { ... } \& view.default = \*(Aqwhatever\*(Aq \& %] \& ... \& [% END %] .Ve .PP The \f(CW\*(C`print()\*(C'\fR method provides one more piece of magic. If you pass it a reference to an object which provides a \f(CW\*(C`present()\*(C'\fR method, then the method will be called passing the view as an argument. This then gives any object a chance to determine how it should be presented via the view. .PP .Vb 8 \& package Foo::Bar; \& ... \& sub present { \& my ($self, $view) = @_; \& return "a Foo::Bar object:\en" \& . "thingies: " . $view\->print($self\->{ _THINGIES }) . "\en" \& . "doodahs: " . $view\->print($self\->{ _DOODAHS }) . "\en"; \& } .Ve .PP The object is free to delve deeply into its innards and mess around with its own private data, before presenting the relevant data via the view. In a more complex example, a \f(CW\*(C`present()\*(C'\fR method might walk part of a tree making calls back against the view to present different nodes within the tree. We may not want to expose the internal structure of the tree (because that would break encapsulation and make our presentation code dependant on it) but we want to have some way of walking the tree and presenting items found in a particular manner. .PP This is known as \fIStructure Shy Traversal\fR. Our view object doesn't require prior knowledge about the internal structure of any data set to be able to traverse it and present the data contained therein. The data items themselves, via the \f(CW\*(C`present()\*(C'\fR method, can implement the internal iterators to guide the view along the right path to presentation happiness. .PP The upshot is that you can use views to greatly simplify the display of data structures like \f(CW\*(C`XML::DOM\*(C'\fR trees. The documentation for the \&\f(CW\*(C`Template::Plugin::XML::DOM\*(C'\fR module contains an example of this. In essence, it looks something like this: .PP \&\s-1XML\s0 source: .PP .Vb 4 \& \& \& \& .Ve .PP \&\s-1TT\s0 View: .PP .Vb 5 \& [% VIEW fancy %] \& [% BLOCK user %] \& User: [% item.name %] \& [% item.content(myview) %] \& [% END %] \& \& [% BLOCK project %] \& Project: [% project.id %] \- [% project.name %] \& [% END %] \& [% END %] .Ve .PP Generate view: .PP .Vb 2 \& [% USE dom = XML.DOM %] \& [% fancy.print(dom.parse(xml_source)) %] .Ve .PP Output: .PP .Vb 3 \& User: Andy Wardley \& Project: iCan \- iCan, but theyCan\*(Aqt \& Project: p45 \- iDid, but theyDidn\*(Aqt .Ve .PP The same approach can be applied to many other areas. Here's an example from the \f(CW\*(C`File\*(C'\fR/\f(CW\*(C`Directory\*(C'\fR plugins. .PP .Vb 4 \& [% VIEW myview %] \& [% BLOCK file %] \& \- [% item.name %] \& [% END %] \& \& [% BLOCK directory %] \& * [% item.name %] \& [% item.content(myview) FILTER indent %] \& [% END %] \& [% END %] \& \& [% USE dir = Directory(dirpath) %] \& [% myview.print(dir) %] .Ve .PP And here's the same approach use to convert \s-1POD\s0 documentation to any other format via template. .PP .Vb 3 \& [% # load Pod plugin and parse source file into Pod Object Model \& USE Pod; \& pom = Pod.parse_file(my_pod_file); \& \& # define view to map all Pod elements to "pod/html/xxx" templates \& VIEW pod2html \& prefix=\*(Aqpod/html\*(Aq; \& END; \& \& # now print document via view (i.e. as HTML) \& pod2html.print(pom) \& %] .Ve .PP Here we simply define a template prefix for the view which causes the view to look for \f(CW\*(C`pod/html/head1\*(C'\fR, \f(CW\*(C`pod/html/head2\*(C'\fR, \f(CW\*(C`pod/html/over\*(C'\fR as templates to present the different sections of the parsed Pod document. .PP There are some examples in the Template Toolkit test suite: \fIt/pod.t\fR and \&\fIt/view.t\fR which may shed some more light on this. See the distribution sub-directory \fIexamples/pod/html\fR for examples of Pod \-> \s-1HTML\s0 templates.