Pod::Si...Section(3pm)
π Pod::Simple::LinkSection
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>. π«Ά
π COPYRIGHT AND DISCLAIMERS π
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
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms