Skip to main content
Ctrl+K
PetaPerl - Home PetaPerl - Home
  • Introduction
  • Getting Started
  • CLI options
  • How-To
  • Reference
  • Changelog
  • Introduction
  • Getting Started
  • CLI options
  • How-To
  • Reference
  • Changelog

Section Navigation

  • Special variables
  • Built-in Functions
  • Operators
  • Data types
  • Subroutines
  • Locale handling
  • Diagnostic messages
  • Security and taint mode
  • AE
  • AnyDBM_File
  • AnyEvent
  • App
  • Archive
  • Attribute
  • AutoLoader
  • AutoSplit
  • B
  • Benchmark
  • CPAN
  • Cairo
  • Capture
  • Carp
  • Class
  • Clone
  • Compress
  • Config
  • Coro
  • Crypt
  • Cwd
  • DB
  • DBD
  • DBI
  • DBM_Filter
  • DB_File
  • Data
  • Devel
  • Digest
  • DirHandle
  • Dumpvalue
  • DynaLoader
  • EV
  • Encode
  • English
  • Env
  • Errno
  • Event
  • Exporter
  • ExtUtils
  • FFI
  • Fatal
  • Fcntl
  • File
  • FileCache
  • FileHandle
  • Filter
  • FindBin
  • GD
  • GDBM_File
  • Getopt
  • Guard
  • HTML
  • HTTP
  • Hash
  • I18N
  • IO
  • IPC
  • Imager
  • JSON
  • LMDB_File
  • List
  • Locale
  • MIME
  • Math
  • Memoize
  • Module
  • Moose
  • NDBM_File
  • NEXT
  • Net
  • O
  • ODBM_File
  • Opcode
  • Optree
  • PDL
  • POSIX
  • Package
  • PadWalker
  • Params
  • Parse
  • Perl
  • PerlIO
  • Peta
  • Pod
    • Pod::Checker
    • Pod::Escapes
    • Pod::Functions
    • Pod::Html
    • Pod::Man
    • Pod::ParseLink
    • Pod::Perldoc
    • Pod::Simple
      • Pod::Simple::Checker
      • Pod::Simple::Debug
      • Pod::Simple::DumpAsText
      • Pod::Simple::DumpAsXML
      • Pod::Simple::HTML
      • Pod::Simple::HTMLBatch
      • Pod::Simple::JustPod
      • Pod::Simple::LinkSection
      • Pod::Simple::Methody
      • Pod::Simple::PullParser
      • Pod::Simple::PullParserEndToken
      • Pod::Simple::PullParserStartToken
      • Pod::Simple::PullParserTextToken
      • Pod::Simple::PullParserToken
      • Pod::Simple::RTF
      • Pod::Simple::Search
      • Pod::Simple::SimpleTree
      • Pod::Simple::Text
      • Pod::Simple::TextContent
      • Pod::Simple::XHTML
      • Pod::Simple::XMLOutStream
    • Pod::Text
    • Pod::Usage
  • SDBM_File
  • SDL2
  • Safe
  • Scalar
  • Search
  • SelectSaver
  • SelfLoader
  • Socket
  • Storable
  • String
  • Sub
  • Symbol
  • Syntax
  • Sys
  • TAP
  • Template
  • Term
  • Test
  • Test2
  • Text
  • Thread
  • Tie
  • Time
  • Types
  • UNIVERSAL
  • URL
  • Unicode
  • User
  • XML
  • XS
  • XSLoader
  • XString
  • YAML
  • _charnames
  • attributes
  • autodie
  • autouse
  • base
  • bigfloat
  • bigint
  • bignum
  • bigrat
  • blib
  • builtin
  • bytes
  • charnames
  • constant
  • deprecate
  • diagnostics
  • encoding
  • experimental
  • feature
  • fields
  • filetest
  • if
  • integer
  • less
  • lib
  • locale
  • meta
  • mro
  • ok
  • open
  • ops
  • overload
  • overloading
  • parent
  • perlfaq
  • re
  • sigtrap
  • sort
  • source
  • stable
  • strict
  • subs
  • threads
  • utf8
  • vars
  • version
  • warnings
  • Reference
  • Pod
  • Pod::Simple
  • Pod::Simple::LinkSection

Pod::Simple::LinkSection#

represent “section” attributes of L codes

SYNOPSIS#

# a long story

DESCRIPTION#

This class is not of interest to general users.

Pod::Simple uses this class for representing the value of the “section” attribute of “L” start-element events. Most applications can just use the normal stringification of objects of this class; they stringify to just the text content of the section, such as “foo” for L<Stuff/foo>, and “bar” for L<Stuff/bI<ar>>.

However, anyone particularly interested in getting the full value of the treelet, can just traverse the content of the treeleet @$treelet_object. To wit:

  % perl -MData::Dumper -e
    "use base qw(Pod::Simple::Methody);
     sub start_L { print Dumper($_[1]{'section'} ) }
     __PACKAGE__->new->parse_string_document('=head1 L<Foo/bI<ar>baz>>')
    "
Output:
  $VAR1 = bless( [
                   '',
                   {},
                   'b',
                   bless( [
                            'I',
                            {},
                            'ar'
                          ], 'Pod::Simple::LinkSection' ),
                   'baz'
                 ], 'Pod::Simple::LinkSection' );

But stringify it and you get just the text content:

  % perl -MData::Dumper -e
    "use base qw(Pod::Simple::Methody);
     sub start_L { print Dumper( '' . $_[1]{'section'} ) }
     __PACKAGE__->new->parse_string_document('=head1 L<Foo/bI<ar>baz>>')
    "
Output:
  $VAR1 = 'barbaz';

SEE ALSO#

Pod::Simple

SUPPORT#

Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to pod-people-subscribe@perl.org to subscribe.

This module is managed in an open GitHub repository, perl-pod/pod-simple. Feel free to fork and contribute, or to clone perl-pod/pod-simple.git and send patches!

Patches against Pod::Simple are welcome. Please send bug reports to bug-pod-simple@rt.cpan.org.

COPYRIGHT AND DISCLAIMERS#

Copyright (c) 2004 Sean M. Burke.

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

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

AUTHOR#

Pod::Simple was created by Sean M. Burke sburke@cpan.org. But don’t bother him, he’s retired.

Pod::Simple is maintained by:

  • Allison Randal allison@perl.org

  • Hans Dieter Pearcey hdp@cpan.org

  • David E. Wheeler dwheeler@cpan.org

previous

Pod::Simple::JustPod

next

Pod::Simple::Methody

On this page
  • SYNOPSIS
  • DESCRIPTION
  • SEE ALSO
  • SUPPORT
  • COPYRIGHT AND DISCLAIMERS
  • AUTHOR
Source (accessible & AI-friendly)

© 2025-present PetaMem, s.r.o.  ·  rendered —

Documentation under development!

Disclaimer & bug reports  ·  License  ·  Markdown (.tar.gz)  ·  Download pperl