/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/HTML::Element.3pm (70793B)
.\" 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 "HTML::Element 3" .TH HTML::Element 3 "2016-10-25" "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" HTML::Element \- Class for objects that represent HTML elements .SH "VERSION" .IX Header "VERSION" This document describes version 5.03 of HTML::Element, released September 22, 2012 as part of HTML-Tree. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& use HTML::Element; \& $a = HTML::Element\->new(\*(Aqa\*(Aq, href => \*(Aqhttp://www.perl.com/\*(Aq); \& $a\->push_content("The Perl Homepage"); \& \& $tag = $a\->tag; \& print "$tag starts out as:", $a\->starttag, "\en"; \& print "$tag ends as:", $a\->endtag, "\en"; \& print "$tag\e\*(Aqs href attribute is: ", $a\->attr(\*(Aqhref\*(Aq), "\en"; \& \& $links_r = $a\->extract_links(); \& print "Hey, I found ", scalar(@$links_r), " links.\en"; \& \& print "And that, as HTML, is: ", $a\->as_HTML, "\en"; \& $a = $a\->delete; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" (This class is part of the HTML::Tree dist.) .PP Objects of the HTML::Element class can be used to represent elements of \s-1HTML\s0 document trees. These objects have attributes, notably attributes that designates each element's parent and content. The content is an array of text segments and other HTML::Element objects. A tree with HTML::Element objects as nodes can represent the syntax tree for a \s-1HTML\s0 document. .SH "HOW WE REPRESENT TREES" .IX Header "HOW WE REPRESENT TREES" Consider this \s-1HTML\s0 document: .PP .Vb 9 \& \& \& Stuff \& \& \& \&

I like potatoes!

\& \& .Ve .PP Building a syntax tree out of it makes a tree-structure in memory that could be diagrammed as: .PP .Vb 11 \& html (lang=\*(Aqen\-US\*(Aq) \& / \e \& / \e \& / \e \& head body \& /\e \e \& / \e \e \& / \e \e \& title meta h1 \& | (name=\*(Aqauthor\*(Aq, | \& "Stuff" content=\*(AqJojo\*(Aq) "I like potatoes" .Ve .PP This is the traditional way to diagram a tree, with the \*(L"root\*(R" at the top, and it's this kind of diagram that people have in mind when they say, for example, that \*(L"the meta element is under the head element instead of under the body element\*(R". (The same is also said with \&\*(L"inside\*(R" instead of \*(L"under\*(R" \*(-- the use of \*(L"inside\*(R" makes more sense when you're looking at the \s-1HTML\s0 source.) .PP Another way to represent the above tree is with indenting: .PP .Vb 8 \& html (attributes: lang=\*(Aqen\-US\*(Aq) \& head \& title \& "Stuff" \& meta (attributes: name=\*(Aqauthor\*(Aq content=\*(AqJojo\*(Aq) \& body \& h1 \& "I like potatoes" .Ve .PP Incidentally, diagramming with indenting works much better for very large trees, and is easier for a program to generate. The \f(CW\*(C`$tree\->dump\*(C'\fR method uses indentation just that way. .PP However you diagram the tree, it's stored the same in memory \*(-- it's a network of objects, each of which has attributes like so: .PP .Vb 4 \& element #1: _tag: \*(Aqhtml\*(Aq \& _parent: none \& _content: [element #2, element #5] \& lang: \*(Aqen\-US\*(Aq \& \& element #2: _tag: \*(Aqhead\*(Aq \& _parent: element #1 \& _content: [element #3, element #4] \& \& element #3: _tag: \*(Aqtitle\*(Aq \& _parent: element #2 \& _content: [text segment "Stuff"] \& \& element #4 _tag: \*(Aqmeta\*(Aq \& _parent: element #2 \& _content: none \& name: author \& content: Jojo \& \& element #5 _tag: \*(Aqbody\*(Aq \& _parent: element #1 \& _content: [element #6] \& \& element #6 _tag: \*(Aqh1\*(Aq \& _parent: element #5 \& _content: [text segment "I like potatoes"] .Ve .PP The \*(L"treeness\*(R" of the tree-structure that these elements comprise is not an aspect of any particular object, but is emergent from the relatedness attributes (_parent and _content) of these element-objects and from how you use them to get from element to element. .PP While you could access the content of a tree by writing code that says "access the 'src' attribute of the root's \fIfirst\fR child's \fIseventh\fR child's \fIthird\fR child\*(L", you're more likely to have to scan the contents of a tree, looking for whatever nodes, or kinds of nodes, you want to do something with. The most straightforward way to look over a tree is to \*(R"traverse" it; an HTML::Element method (\f(CW\*(C`$h\->traverse\*(C'\fR) is provided for this purpose; and several other HTML::Element methods are based on it. .PP (For everything you ever wanted to know about trees, and then some, see Niklaus Wirth's \fIAlgorithms + Data Structures = Programs\fR or Donald Knuth's \fIThe Art of Computer Programming, Volume 1\fR.) .SS "Weak References" .IX Subsection "Weak References" \&\s-1TL\s0;DR summary: \f(CW\*(C`use\ HTML::TreeBuilder\ 5\ \-weak;\*(C'\fR and forget about the \f(CW\*(C`delete\*(C'\fR method (except for pruning a node from a tree). .PP Because HTML::Element stores a reference to the parent element, Perl's reference-count garbage collection doesn't work properly with HTML::Element trees. Starting with version 5.00, HTML::Element uses weak references (if available) to prevent that problem. Weak references were introduced in Perl 5.6.0, but you also need a version of Scalar::Util that provides the \f(CW\*(C`weaken\*(C'\fR function. .PP Weak references are enabled by default. If you want to be certain they're in use, you can say \f(CW\*(C`use\ HTML::Element\ 5\ \-weak;\*(C'\fR. You must include the version number; previous versions of HTML::Element ignored the import list entirely. .PP To disable weak references, you can say \f(CW\*(C`use\ HTML::Element\ \-noweak;\*(C'\fR. This is a global setting. \fBThis feature is deprecated\fR and is provided only as a quick fix for broken code. If your code does not work properly with weak references, you should fix it immediately, as weak references may become mandatory in a future version. Generally, all you need to do is keep a reference to the root of the tree until you're done working with it. .PP Because HTML::TreeBuilder is a subclass of HTML::Element, you can also import \f(CW\*(C`\-weak\*(C'\fR or \f(CW\*(C`\-noweak\*(C'\fR from HTML::TreeBuilder: e.g. \&\f(CW\*(C`use\ HTML::TreeBuilder:\ 5\ \-weak;\*(C'\fR. .SH "BASIC METHODS" .IX Header "BASIC METHODS" .SS "new" .IX Subsection "new" .Vb 1 \& $h = HTML::Element\->new(\*(Aqtag\*(Aq, \*(Aqattrname\*(Aq => \*(Aqvalue\*(Aq, ... ); .Ve .PP This constructor method returns a new HTML::Element object. The tag name is a required argument; it will be forced to lowercase. Optionally, you can specify other initial attributes at object creation time. .SS "attr" .IX Subsection "attr" .Vb 2 \& $value = $h\->attr(\*(Aqattr\*(Aq); \& $old_value = $h\->attr(\*(Aqattr\*(Aq, $new_value); .Ve .PP Returns (optionally sets) the value of the given attribute of \f(CW$h\fR. The attribute name (but not the value, if provided) is forced to lowercase. If trying to read the value of an attribute not present for this element, the return value is undef. If setting a new value, the old value of that attribute is returned. .PP If methods are provided for accessing an attribute (like \f(CW\*(C`$h\->tag\*(C'\fR for \&\*(L"_tag\*(R", \f(CW\*(C`$h\->content_list\*(C'\fR, etc. below), use those instead of calling attr \f(CW\*(C`$h\->attr\*(C'\fR, whether for reading or setting. .PP Note that setting an attribute to \f(CW\*(C`undef\*(C'\fR (as opposed to "", the empty string) actually deletes the attribute. .SS "tag" .IX Subsection "tag" .Vb 2 \& $tagname = $h\->tag(); \& $h\->tag(\*(Aqtagname\*(Aq); .Ve .PP Returns (optionally sets) the tag name (also known as the generic identifier) for the element \f(CW$h\fR. In setting, the tag name is always converted to lower case. .PP There are four kinds of \*(L"pseudo-elements\*(R" that show up as HTML::Element objects: .IP "Comment pseudo-elements" 4 .IX Item "Comment pseudo-elements" These are element objects with a \f(CW\*(C`$h\->tag\*(C'\fR value of \*(L"~comment\*(R", and the content of the comment is stored in the \*(L"text\*(R" attribute (\f(CW\*(C`$h\->attr("text")\*(C'\fR). For example, parsing this code with HTML::TreeBuilder... .Sp .Vb 3 \& .Ve .Sp produces an HTML::Element object with these attributes: .Sp .Vb 4 \& "_tag", \& "~comment", \& "text", \& " I like Pie.\en Pie is good\en " .Ve .IP "Declaration pseudo-elements" 4 .IX Item "Declaration pseudo-elements" Declarations (rarely encountered) are represented as HTML::Element objects with a tag name of \*(L"~declaration\*(R", and content in the \*(L"text\*(R" attribute. For example, this: .Sp .Vb 1 \& .Ve .Sp produces an element whose attributes include: .Sp .Vb 1 \& "_tag", "~declaration", "text", "DOCTYPE foo" .Ve .IP "Processing instruction pseudo-elements" 4 .IX Item "Processing instruction pseudo-elements" PIs (rarely encountered) are represented as HTML::Element objects with a tag name of \*(L"~pi\*(R", and content in the \*(L"text\*(R" attribute. For example, this: .Sp .Vb 1 \& .Ve .Sp produces an element whose attributes include: .Sp .Vb 1 \& "_tag", "~pi", "text", "stuff foo?" .Ve .Sp (assuming a recent version of HTML::Parser) .IP "~literal pseudo-elements" 4 .IX Item "~literal pseudo-elements" These objects are not currently produced by HTML::TreeBuilder, but can be used to represent a \*(L"super-literal\*(R" \*(-- i.e., a literal you want to be immune from escaping. (Yes, I just made that term up.) .Sp That is, this is useful if you want to insert code into a tree that you plan to dump out with \f(CW\*(C`as_HTML\*(C'\fR, where you want, for some reason, to suppress \f(CW\*(C`as_HTML\*(C'\fR's normal behavior of amp-quoting text segments. .Sp For example, this: .Sp .Vb 6 \& my $literal = HTML::Element\->new(\*(Aq~literal\*(Aq, \& \*(Aqtext\*(Aq => \*(Aqx < 4 & y > 7\*(Aq \& ); \& my $span = HTML::Element\->new(\*(Aqspan\*(Aq); \& $span\->push_content($literal); \& print $span\->as_HTML; .Ve .Sp prints this: .Sp .Vb 1 \& x < 4 & y > 7 .Ve .Sp Whereas this: .Sp .Vb 4 \& my $span = HTML::Element\->new(\*(Aqspan\*(Aq); \& $span\->push_content(\*(Aqx < 4 & y > 7\*(Aq); \& # normal text segment \& print $span\->as_HTML; .Ve .Sp prints this: .Sp .Vb 1 \& x < 4 & y > 7 .Ve .Sp Unless you're inserting lots of pre-cooked code into existing trees, and dumping them out again, it's not likely that you'll find \&\f(CW\*(C`~literal\*(C'\fR pseudo-elements useful. .SS "parent" .IX Subsection "parent" .Vb 2 \& $parent = $h\->parent(); \& $h\->parent($new_parent); .Ve .PP Returns (optionally sets) the parent (aka \*(L"container\*(R") for this element. The parent should either be undef, or should be another element. .PP You \fBshould not\fR use this to directly set the parent of an element. Instead use any of the other methods under \*(L"Structure-Modifying Methods\*(R", below. .PP Note that \f(CW\*(C`not($h\->parent)\*(C'\fR is a simple test for whether \f(CW$h\fR is the root of its subtree. .SS "content_list" .IX Subsection "content_list" .Vb 2 \& @content = $h\->content_list(); \& $num_children = $h\->content_list(); .Ve .PP Returns a list of the child nodes of this element \*(-- i.e., what nodes (elements or text segments) are inside/under this element. (Note that this may be an empty list.) .PP In a scalar context, this returns the count of the items, as you may expect. .SS "content" .IX Subsection "content" .Vb 1 \& $content_array_ref = $h\->content(); # may return undef .Ve .PP This somewhat deprecated method returns the content of this element; but unlike content_list, this returns either undef (which you should understand to mean no content), or a \fIreference to the array\fR of content items, each of which is either a text segment (a string, i.e., a defined non-reference scalar value), or an HTML::Element object. Note that even if an arrayref is returned, it may be a reference to an empty array. .PP While older code should feel free to continue to use \f(CW\*(C`$h\->content\*(C'\fR, new code should use \f(CW\*(C`$h\->content_list\*(C'\fR in almost all conceivable cases. It is my experience that in most cases this leads to simpler code anyway, since it means one can say: .PP .Vb 1 \& @children = $h\->content_list; .Ve .PP instead of the inelegant: .PP .Vb 1 \& @children = @{$h\->content || []}; .Ve .PP If you do use \f(CW\*(C`$h\->content\*(C'\fR (or \f(CW\*(C`$h\->content_array_ref\*(C'\fR), you should not use the reference returned by it (assuming it returned a reference, and not undef) to directly set or change the content of an element or text segment! Instead use content_refs_list or any of the other methods under \*(L"Structure-Modifying Methods\*(R", below. .SS "content_array_ref" .IX Subsection "content_array_ref" .Vb 1 \& $content_array_ref = $h\->content_array_ref(); # never undef .Ve .PP This is like \f(CW\*(C`content\*(C'\fR (with all its caveats and deprecations) except that it is guaranteed to return an array reference. That is, if the given node has no \f(CW\*(C`_content\*(C'\fR attribute, the \f(CW\*(C`content\*(C'\fR method would return that undef, but \f(CW\*(C`content_array_ref\*(C'\fR would set the given node's \&\f(CW\*(C`_content\*(C'\fR value to \f(CW\*(C`[]\*(C'\fR (a reference to a new, empty array), and return that. .SS "content_refs_list" .IX Subsection "content_refs_list" .Vb 1 \& @content_refs = $h\->content_refs_list; .Ve .PP This returns a list of scalar references to each element of \f(CW$h\fR's content list. This is useful in case you want to in-place edit any large text segments without having to get a copy of the current value of that segment value, modify that copy, then use the \&\f(CW\*(C`splice_content\*(C'\fR to replace the old with the new. Instead, here you can in-place edit: .PP .Vb 4 \& foreach my $item_r ($h\->content_refs_list) { \& next if ref $$item_r; \& $$item_r =~ s/honour/honor/g; \& } .Ve .PP You \fIcould\fR currently achieve the same affect with: .PP .Vb 5 \& foreach my $item (@{ $h\->content_array_ref }) { \& # deprecated! \& next if ref $item; \& $item =~ s/honour/honor/g; \& } .Ve .PP \&...except that using the return value of \f(CW\*(C`$h\->content\*(C'\fR or \&\f(CW\*(C`$h\->content_array_ref\*(C'\fR to do that is deprecated, and just might stop working in the future. .SS "implicit" .IX Subsection "implicit" .Vb 2 \& $is_implicit = $h\->implicit(); \& $h\->implicit($make_implicit); .Ve .PP Returns (optionally sets) the \*(L"_implicit\*(R" attribute. This attribute is a flag that's used for indicating that the element was not originally present in the source, but was added to the parse tree (by HTML::TreeBuilder, for example) in order to conform to the rules of \&\s-1HTML\s0 structure. .SS "pos" .IX Subsection "pos" .Vb 2 \& $pos = $h\->pos(); \& $h\->pos($element); .Ve .PP Returns (and optionally sets) the \*(L"_pos\*(R" (for "current \fIpos\fRition") pointer of \f(CW$h\fR. This attribute is a pointer used during some parsing operations, whose value is whatever HTML::Element element at or under \f(CW$h\fR is currently \*(L"open\*(R", where \f(CW\*(C`$h\->insert_element(NEW)\*(C'\fR will actually insert a new element. .PP (This has nothing to do with the Perl function called \f(CW\*(C`pos\*(C'\fR, for controlling where regular expression matching starts.) .PP If you set \f(CW\*(C`$h\->pos($element)\*(C'\fR, be sure that \f(CW$element\fR is either \f(CW$h\fR, or an element under \f(CW$h\fR. .PP If you've been modifying the tree under \f(CW$h\fR and are no longer sure \f(CW\*(C`$h\->pos\*(C'\fR is valid, you can enforce validity with: .PP .Vb 1 \& $h\->pos(undef) unless $h\->pos\->is_inside($h); .Ve .SS "all_attr" .IX Subsection "all_attr" .Vb 1 \& %attr = $h\->all_attr(); .Ve .PP Returns all this element's attributes and values, as key-value pairs. This will include any \*(L"internal\*(R" attributes (i.e., ones not present in the original element, and which will not be represented if/when you call \f(CW\*(C`$h\->as_HTML\*(C'\fR). Internal attributes are distinguished by the fact that the first character of their key (not value! key!) is an underscore (\*(L"_\*(R"). .PP Example output of \f(CW\*(C`$h\->all_attr()\*(C'\fR : \&\f(CW\*(C`\*(Aq_parent\*(Aq, \*(C'\fR\fI[object_value]\fR\f(CW\*(C` , \*(Aq_tag\*(Aq, \*(Aqem\*(Aq, \*(Aqlang\*(Aq, \*(Aqen\-US\*(Aq, \&\*(Aq_content\*(Aq, \*(C'\fR\fI[array\-ref value]\fR. .SS "all_attr_names" .IX Subsection "all_attr_names" .Vb 2 \& @names = $h\->all_attr_names(); \& $num_attrs = $h\->all_attr_names(); .Ve .PP Like \f(CW\*(C`all_attr\*(C'\fR, but only returns the names of the attributes. In scalar context, returns the number of attributes. .PP Example output of \f(CW\*(C`$h\->all_attr_names()\*(C'\fR : \&\f(CW\*(C`\*(Aq_parent\*(Aq, \*(Aq_tag\*(Aq, \*(Aqlang\*(Aq, \*(Aq_content\*(Aq, \*(C'\fR. .SS "all_external_attr" .IX Subsection "all_external_attr" .Vb 1 \& %attr = $h\->all_external_attr(); .Ve .PP Like \f(CW\*(C`all_attr\*(C'\fR, except that internal attributes are not present. .SS "all_external_attr_names" .IX Subsection "all_external_attr_names" .Vb 2 \& @names = $h\->all_external_attr_names(); \& $num_attrs = $h\->all_external_attr_names(); .Ve .PP Like \f(CW\*(C`all_attr_names\*(C'\fR, except that internal attributes' names are not present (or counted). .SS "id" .IX Subsection "id" .Vb 2 \& $id = $h\->id(); \& $h\->id($string); .Ve .PP Returns (optionally sets to \f(CW$string\fR) the \*(L"id\*(R" attribute. \&\f(CW\*(C`$h\->id(undef)\*(C'\fR deletes the \*(L"id\*(R" attribute. .PP \&\f(CW\*(C`$h\->id(...)\*(C'\fR is basically equivalent to \f(CW\*(C`$h\->attr(\*(Aqid\*(Aq, ...)\*(C'\fR, except that when setting the attribute, this method returns the new value, not the old value. .SS "idf" .IX Subsection "idf" .Vb 2 \& $id = $h\->idf(); \& $h\->idf($string); .Ve .PP Just like the \f(CW\*(C`id\*(C'\fR method, except that if you call \f(CW\*(C`$h\->idf()\*(C'\fR and no \*(L"id\*(R" attribute is defined for this element, then it's set to a likely-to-be-unique value, and returned. (The \*(L"f\*(R" is for \*(L"force\*(R".) .SH "STRUCTURE-MODIFYING METHODS" .IX Header "STRUCTURE-MODIFYING METHODS" These methods are provided for modifying the content of trees by adding or changing nodes as parents or children of other nodes. .SS "push_content" .IX Subsection "push_content" .Vb 1 \& $h\->push_content($element_or_text, ...); .Ve .PP Adds the specified items to the \fIend\fR of the content list of the element \f(CW$h\fR. The items of content to be added should each be either a text segment (a string), an HTML::Element object, or an arrayref. Arrayrefs are fed thru \f(CW\*(C`$h\->new_from_lol(that_arrayref)\*(C'\fR to convert them into elements, before being added to the content list of \f(CW$h\fR. This means you can say things concise things like: .PP .Vb 6 \& $body\->push_content( \& [\*(Aqbr\*(Aq], \& [\*(Aqul\*(Aq, \& map [\*(Aqli\*(Aq, $_], qw(Peaches Apples Pears Mangos) \& ] \& ); .Ve .PP See the \*(L"new_from_lol\*(R" method's documentation, far below, for more explanation. .PP Returns \f(CW$h\fR (the element itself). .PP The push_content method will try to consolidate adjacent text segments while adding to the content list. That's to say, if \f(CW$h\fR's \f(CW\*(C`content_list\*(C'\fR is .PP .Vb 1 \& (\*(Aqfoo bar \*(Aq, $some_node, \*(Aqbaz!\*(Aq) .Ve .PP and you call .PP .Vb 1 \& $h\->push_content(\*(Aqquack?\*(Aq); .Ve .PP then the resulting content list will be this: .PP .Vb 1 \& (\*(Aqfoo bar \*(Aq, $some_node, \*(Aqbaz!quack?\*(Aq) .Ve .PP and not this: .PP .Vb 1 \& (\*(Aqfoo bar \*(Aq, $some_node, \*(Aqbaz!\*(Aq, \*(Aqquack?\*(Aq) .Ve .PP If that latter is what you want, you'll have to override the feature of consolidating text by using splice_content, as in: .PP .Vb 1 \& $h\->splice_content(scalar($h\->content_list),0,\*(Aqquack?\*(Aq); .Ve .PP Similarly, if you wanted to add 'Skronk' to the beginning of the content list, calling this: .PP .Vb 1 \& $h\->unshift_content(\*(AqSkronk\*(Aq); .Ve .PP then the resulting content list will be this: .PP .Vb 1 \& (\*(AqSkronkfoo bar \*(Aq, $some_node, \*(Aqbaz!\*(Aq) .Ve .PP and not this: .PP .Vb 1 \& (\*(AqSkronk\*(Aq, \*(Aqfoo bar \*(Aq, $some_node, \*(Aqbaz!\*(Aq) .Ve .PP What you'd to do get the latter is: .PP .Vb 1 \& $h\->splice_content(0,0,\*(AqSkronk\*(Aq); .Ve .SS "unshift_content" .IX Subsection "unshift_content" .Vb 1 \& $h\->unshift_content($element_or_text, ...) .Ve .PP Just like \f(CW\*(C`push_content\*(C'\fR, but adds to the \fIbeginning\fR of the \f(CW$h\fR element's content list. .PP The items of content to be added should each be either a text segment (a string), an HTML::Element object, or an arrayref (which is fed thru \f(CW\*(C`new_from_lol\*(C'\fR). .PP The unshift_content method will try to consolidate adjacent text segments while adding to the content list. See above for a discussion of this. .PP Returns \f(CW$h\fR (the element itself). .SS "splice_content" .IX Subsection "splice_content" .Vb 2 \& @removed = $h\->splice_content($offset, $length, \& $element_or_text, ...); .Ve .PP Detaches the elements from \f(CW$h\fR's list of content-nodes, starting at \&\f(CW$offset\fR and continuing for \f(CW$length\fR items, replacing them with the elements of the following list, if any. Returns the elements (if any) removed from the content-list. If \f(CW$offset\fR is negative, then it starts that far from the end of the array, just like Perl's normal \f(CW\*(C`splice\*(C'\fR function. If \f(CW$length\fR and the following list is omitted, removes everything from \f(CW$offset\fR onward. .PP The items of content to be added (if any) should each be either a text segment (a string), an arrayref (which is fed thru \*(L"new_from_lol\*(R"), or an HTML::Element object that's not already a child of \f(CW$h\fR. .SS "detach" .IX Subsection "detach" .Vb 1 \& $old_parent = $h\->detach(); .Ve .PP This unlinks \f(CW$h\fR from its parent, by setting its 'parent' attribute to undef, and by removing it from the content list of its parent (if it had one). The return value is the parent that was detached from (or undef, if \f(CW$h\fR had no parent to start with). Note that neither \f(CW$h\fR nor its parent are explicitly destroyed. .SS "detach_content" .IX Subsection "detach_content" .Vb 1 \& @old_content = $h\->detach_content(); .Ve .PP This unlinks all of \f(CW$h\fR's children from \f(CW$h\fR, and returns them. Note that these are not explicitly destroyed; for that, you can just use \f(CW\*(C`$h\->delete_content\*(C'\fR. .SS "replace_with" .IX Subsection "replace_with" .Vb 1 \& $h\->replace_with( $element_or_text, ... ) .Ve .PP This replaces \f(CW$h\fR in its parent's content list with the nodes specified. The element \f(CW$h\fR (which by then may have no parent) is returned. This causes a fatal error if \f(CW$h\fR has no parent. The list of nodes to insert may contain \f(CW$h\fR, but at most once. Aside from that possible exception, the nodes to insert should not already be children of \f(CW$h\fR's parent. .PP Also, note that this method does not destroy \f(CW$h\fR if weak references are turned off \*(-- use \f(CW\*(C`$h\->replace_with(...)\->delete\*(C'\fR if you need that. .SS "preinsert" .IX Subsection "preinsert" .Vb 1 \& $h\->preinsert($element_or_text...); .Ve .PP Inserts the given nodes right \s-1BEFORE \s0\f(CW$h\fR in \f(CW$h\fR's parent's content list. This causes a fatal error if \f(CW$h\fR has no parent. None of the given nodes should be \f(CW$h\fR or other children of \f(CW$h\fR. Returns \f(CW$h\fR. .SS "postinsert" .IX Subsection "postinsert" .Vb 1 \& $h\->postinsert($element_or_text...) .Ve .PP Inserts the given nodes right \s-1AFTER \s0\f(CW$h\fR in \f(CW$h\fR's parent's content list. This causes a fatal error if \f(CW$h\fR has no parent. None of the given nodes should be \f(CW$h\fR or other children of \f(CW$h\fR. Returns \&\f(CW$h\fR. .SS "replace_with_content" .IX Subsection "replace_with_content" .Vb 1 \& $h\->replace_with_content(); .Ve .PP This replaces \f(CW$h\fR in its parent's content list with its own content. The element \f(CW$h\fR (which by then has no parent or content of its own) is returned. This causes a fatal error if \f(CW$h\fR has no parent. Also, note that this does not destroy \f(CW$h\fR if weak references are turned off \*(-- use \&\f(CW\*(C`$h\->replace_with_content\->delete\*(C'\fR if you need that. .SS "delete_content" .IX Subsection "delete_content" .Vb 2 \& $h\->delete_content(); \& $h\->destroy_content(); # alias .Ve .PP Clears the content of \f(CW$h\fR, calling \f(CW\*(C`$h\->delete\*(C'\fR for each content element. Compare with \f(CW\*(C`$h\->detach_content\*(C'\fR. .PP Returns \f(CW$h\fR. .PP \&\f(CW\*(C`destroy_content\*(C'\fR is an alias for this method. .SS "delete" .IX Subsection "delete" .Vb 2 \& $h\->delete(); \& $h\->destroy(); # alias .Ve .PP Detaches this element from its parent (if it has one) and explicitly destroys the element and all its descendants. The return value is the empty list (or \f(CW\*(C`undef\*(C'\fR in scalar context). .PP Before version 5.00 of HTML::Element, you had to call \f(CW\*(C`delete\*(C'\fR when you were finished with the tree, or your program would leak memory. This is no longer necessary if weak references are enabled, see \&\*(L"Weak References\*(R". .SS "destroy" .IX Subsection "destroy" An alias for \*(L"delete\*(R". .SS "destroy_content" .IX Subsection "destroy_content" An alias for \*(L"delete_content\*(R". .SS "clone" .IX Subsection "clone" .Vb 1 \& $copy = $h\->clone(); .Ve .PP Returns a copy of the element (whose children are clones (recursively) of the original's children, if any). .PP The returned element is parentless. Any '_pos' attributes present in the source element/tree will be absent in the copy. For that and other reasons, the clone of an HTML::TreeBuilder object that's in mid-parse (i.e, the head of a tree that HTML::TreeBuilder is elaborating) cannot (currently) be used to continue the parse. .PP You are free to clone HTML::TreeBuilder trees, just as long as: 1) they're done being parsed, or 2) you don't expect to resume parsing into the clone. (You can continue parsing into the original; it is never affected.) .SS "clone_list" .IX Subsection "clone_list" .Vb 1 \& @copies = HTML::Element\->clone_list(...nodes...); .Ve .PP Returns a list consisting of a copy of each node given. Text segments are simply copied; elements are cloned by calling \f(CW\*(C`$it\->clone\*(C'\fR on each of them. .PP Note that this must be called as a class method, not as an instance method. \f(CW\*(C`clone_list\*(C'\fR will croak if called as an instance method. You can also call it like so: .PP .Vb 1 \& ref($h)\->clone_list(...nodes...) .Ve .SS "normalize_content" .IX Subsection "normalize_content" .Vb 1 \& $h\->normalize_content .Ve .PP Normalizes the content of \f(CW$h\fR \*(-- i.e., concatenates any adjacent text nodes. (Any undefined text segments are turned into empty-strings.) Note that this does not recurse into \f(CW$h\fR's descendants. .SS "delete_ignorable_whitespace" .IX Subsection "delete_ignorable_whitespace" .Vb 1 \& $h\->delete_ignorable_whitespace() .Ve .PP This traverses under \f(CW$h\fR and deletes any text segments that are ignorable whitespace. You should not use this if \f(CW$h\fR is under a \f(CW\*(C`
\*(C'\fR element.
.SS "insert_element"
.IX Subsection "insert_element"
.Vb 1
\&  $h\->insert_element($element, $implicit);
.Ve
.PP
Inserts (via push_content) a new element under the element at
\&\f(CW\*(C`$h\->pos()\*(C'\fR.  Then updates \f(CW\*(C`$h\->pos()\*(C'\fR to point to the inserted
element, unless \f(CW$element\fR is a prototypically empty element like
\&\f(CW\*(C`
\*(C'\fR, \f(CW\*(C`
\*(C'\fR, \f(CW\*(C`\*(C'\fR, etc. The new \f(CW\*(C`$h\->pos()\*(C'\fR is returned. This method is useful only if your particular tree task involves setting \&\f(CW\*(C`$h\->pos()\*(C'\fR. .SH "DUMPING METHODS" .IX Header "DUMPING METHODS" .SS "dump" .IX Subsection "dump" .Vb 2 \& $h\->dump() \& $h\->dump(*FH) ; # or *FH{IO} or $fh_obj .Ve .PP Prints the element and all its children to \s-1STDOUT \s0(or to a specified filehandle), in a format useful only for debugging. The structure of the document is shown by indentation (no end tags). .SS "as_HTML" .IX Subsection "as_HTML" .Vb 4 \& $s = $h\->as_HTML(); \& $s = $h\->as_HTML($entities); \& $s = $h\->as_HTML($entities, $indent_char); \& $s = $h\->as_HTML($entities, $indent_char, \e%optional_end_tags); .Ve .PP Returns a string representing in \s-1HTML\s0 the element and its descendants. The optional argument \f(CW$entities\fR specifies a string of the entities to encode. For compatibility with previous versions, specify \f(CW\*(Aq<>&\*(Aq\fR here. If omitted or undef, \fIall\fR unsafe characters are encoded as \s-1HTML\s0 entities. See HTML::Entities for details. If passed an empty string, no entities are encoded. .PP If \f(CW$indent_char\fR is specified and defined, the \s-1HTML\s0 to be output is intented, using the string you specify (which you probably should set to \*(L"\et\*(R", or some number of spaces, if you specify it). .PP If \f(CW\*(C`\e%optional_end_tags\*(C'\fR is specified and defined, it should be a reference to a hash that holds a true value for every tag name whose end tag is optional. Defaults to \&\f(CW\*(C`\e%HTML::Element::optionalEndTag\*(C'\fR, which is an alias to \&\f(CW%HTML::Tagset::optionalEndTag\fR, which, at time of writing, contains true values for \f(CW\*(C`p, li, dt, dd\*(C'\fR. A useful value to pass is an empty hashref, \f(CW\*(C`{}\*(C'\fR, which means that no end-tags are optional for this dump. Otherwise, possibly consider copying \f(CW%HTML::Tagset::optionalEndTag\fR to a hash of your own, adding or deleting values as you like, and passing a reference to that hash. .SS "as_text" .IX Subsection "as_text" .Vb 2 \& $s = $h\->as_text(); \& $s = $h\->as_text(skip_dels => 1); .Ve .PP Returns a string consisting of only the text parts of the element's descendants. Any whitespace inside the element is included unchanged, but whitespace not in the tree is never added. But remember that whitespace may be ignored or compacted by HTML::TreeBuilder during parsing (depending on the value of the \f(CW\*(C`ignore_ignorable_whitespace\*(C'\fR and \f(CW\*(C`no_space_compacting\*(C'\fR attributes). Also, since whitespace is never added during parsing, .PP .Vb 2 \& HTML::TreeBuilder\->new_from_content("

a

b

") \& \->as_text; .Ve .PP returns \f(CW"ab"\fR, not \f(CW"a b"\fR or \f(CW"a\enb"\fR. .PP Text under \f(CW\*(C`