1Pod::Simple::LinkSectionP(e3rplm)Programmers ReferencePGoudi:d:eSimple::LinkSection(3pm)
2
3
4

NAME

6       Pod::Simple::LinkSection -- represent "section" attributes of L codes
7

SYNOPSIS

9        # a long story
10

DESCRIPTION

12       This class is not of interest to general users.
13
14       Pod::Simple uses this class for representing the value of the "section"
15       attribute of "L" start-element events.  Most applications can just use
16       the normal stringification of objects of this class; they stringify to
17       just the text content of the section, such as "foo" for "L<Stuff/foo>",
18       and "bar" for "L<Stuff/bI<ar>>".
19
20       However, anyone particularly interested in getting the full value of
21       the treelet, can just traverse the content of the treeleet
22       @$treelet_object.  To wit:
23
24         % perl -MData::Dumper -e
25           "use base qw(Pod::Simple::Methody);
26            sub start_L { print Dumper($_[1]{'section'} ) }
27            __PACKAGE__->new->parse_string_document('=head1 L<Foo/bI<ar>baz>>')
28           "
29       Output:
30         $VAR1 = bless( [
31                          '',
32                          {},
33                          'b',
34                          bless( [
35                                   'I',
36                                   {},
37                                   'ar'
38                                 ], 'Pod::Simple::LinkSection' ),
39                          'baz'
40                        ], 'Pod::Simple::LinkSection' );
41
42       But stringify it and you get just the text content:
43
44         % perl -MData::Dumper -e
45           "use base qw(Pod::Simple::Methody);
46            sub start_L { print Dumper( '' . $_[1]{'section'} ) }
47            __PACKAGE__->new->parse_string_document('=head1 L<Foo/bI<ar>baz>>')
48           "
49       Output:
50         $VAR1 = 'barbaz';
51

SEE ALSO

53       Pod::Simple
54

SUPPORT

56       Questions or discussion about POD and Pod::Simple should be sent to the
57       pod-people@perl.org mail list. Send an empty email to
58       pod-people-subscribe@perl.org to subscribe.
59
60       This module is managed in an open GitHub repository,
61       http://github.com/theory/pod-simple/ <http://github.com/theory/pod-
62       simple/>. Feel free to fork and contribute, or to clone
63       git://github.com/theory/pod-simple.git <git://github.com/theory/pod-
64       simple.git> and send patches!
65
66       Patches against Pod::Simple are welcome. Please send bug reports to
67       <bug-pod-simple@rt.cpan.org>.
68
70       Copyright (c) 2004 Sean M. Burke.
71
72       This library is free software; you can redistribute it and/or modify it
73       under the same terms as Perl itself.
74
75       This program is distributed in the hope that it will be useful, but
76       without any warranty; without even the implied warranty of
77       merchantability or fitness for a particular purpose.
78

AUTHOR

80       Pod::Simple was created by Sean M. Burke <sburke@cpan.org>.  But don't
81       bother him, he's retired.
82
83       Pod::Simple is maintained by:
84
85       ·   Allison Randal "allison@perl.org"
86
87       ·   Hans Dieter Pearcey "hdp@cpan.org"
88
89       ·   David E. Wheeler "dwheeler@cpan.org"
90
91
92
93perl v5.12.4                      2011-06-07     Pod::Simple::LinkSection(3pm)
Impressum