Pod::I...::Entry(3pm)
β¨ Pod::I...::Entry(3pm) β¨
okay bestie, this is the page for Pod::I...::Entry from User Contributed Perl Documentation β it's a Perl module, and it is so much less scary than the name makes it look. sit down, grab a lil snack π, and let's get into it.
π NAME π
Pod::Index::Entry β it represents a Pod search result. that's it, that's the whole vibe. one lil object that holds one lil search hit. iconic honestly. β¨
πΈ SYNOPSIS πΈ
here's how you actually use it, no cap:
use Pod::Index::Entry;
my $entry = Pod::Index::Entry->new(
keyword => 'constructors',
podname => 'perlobj',
line => 42,
filename => '/usr/lib/perl5/5.8.7/pod/perlobj.pod',
context => 'Using POD',
);
# trivial accessors
my $podname = $entry->podname;
my $filename = $entry->filename;
my $line = $entry->line;
my $context = $entry->context;
my $keyword = $entry->keyword;
# extract the POD for this entry
my $pod = $entry->pod;
see? build the entry, ask it stuff, pull the POD out. the whole character arc, right there. π
π¦ DESCRIPTION π¦
so this class represents a POD index entry. an entry is defined by the podname/filename, the line number, and the context. that's the trio, the main-character trio, the girl group of this module. π
and the entry object also has the ability to extract the POD "scope" from the filename. yes, ability. it's giving multi-talented. β¨
π METHODS π
new
my $q = Pod::Index::Entry->new(%args);
Create a new search object. the possible arguments are, and listen carefully bestie because these are the receipts:
podnameβ the name of the pod, such as.filenameβ the filename for the pod, such asData/Dumper.pm.lineβ the line number where the scope of this entry begins.contextβ the title of the section that contains this entry.
podname Β· filename Β· line Β· context
these four? literally just simple accessors. they return the value of those properties, exactly as you gave them to the constructor. no plot twists, no surprises, just honest lil getters. π«Ά
pod
Extracts the POD for the scope of the entry from $self->filename, beginning at $self->line. π
and if you wanna know what "scope" even means here, go read Pod::Index β it's all defined there. also important: the POD extraction itself is delegated to the Pod::Index::Extract module. it doesn't do the grunt work alone, it outsources. queen behavior. π
β VERSION β
0.14
π SEE ALSO π
go read these next, fr fr:
Pod::IndexPod::Index::SearchPod::Index::Extract
π AUTHOR π
Ivan Tubert-Brohman <itub@cpan.org>
π COPYRIGHT π
Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay that's the whole page bestie, you ate it, you understood it, periodt. π β¨
and a lil sign-off from me to you: this page is perl v5.30.0, dated 2020-05-17, and it lives under the name Pod::I...::Entry(3pm). byeee π¦πΈ
π¦ where this page comes from
- debian bookworm: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-index-perl 0.14-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms