Pod::Si...Section(3pm)

okay bestie, welcome to Pod::Simple::LinkSection β€” aka the Pod::Si...Section(3pm) page in the Perl Programmers Reference Guide. The header truncates the name, but the full class name is right there in the NAME section, no cap. 🫢

✨ NAME ✨

Pod::Simple::LinkSection β€” represent "section" attributes of L codes. That's the whole vibe. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

Bestie, the synopsis is literally this and nothing else:

# a long story

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: this class is not of interest to general users. It's giving internal-support-character energy. 😌

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>>. Slay, simple. ✨

But if you're particularly interested in getting the full value of the treelet, 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, bestie:

  $VAR1 = bless( [
                   '',
                   {},
                   'b',
                   bless( [
                            'I',
                            {},
                            'ar'
                          ], 'Pod::Simple::LinkSection' ),
                   'baz'
                 ], 'Pod::Simple::LinkSection' );

But stringify it and boom β€” 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 β€” that's it, that's the reference. Iconic. πŸ‘‘

🌸 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, <https://github.com/perl-pod/pod-simple/>. Feel free to fork and contribute, or clone <https://github.com/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>. 🫢

Legal tea, served exactly:

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. 😭 Respect the legend and let him rest.

Pod::Simple is maintained by:

  • Allison Randal "allison@perl.org"
  • Hans Dieter Pearcey "hdp@cpan.org"
  • David E. Wheeler "dwheeler@cpan.org"

πŸ’– That's the whole page, bestie! This footer energy is perl v5.42.3, dated 2026-11-03, for Pod::Si...Section(3pm). Bye bestie, go stringify something cute. 🧚✨

πŸ“¦ where this page comes from