From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

new

Returns a new tag object

type, modify_options

Abstract methods

to_string

A tag stringifies to an appropriate line in a ctags file.

on_register

Allows tag to meddle with process when registered with the main tagger object. Return false if want to prevent registration (e.g. for control tags such as Perl::Tags::Tag::Recurse.)

Perl::Tags::Tag::Package

type: p

modify_options

Sets static=0

on_register

Sets the package name

Perl::Tags::Tag::Var

type: v

on_register

Make a tag for this variable unless we're told not to. We
assume that a variable is always static, unless it appears
in a package before any sub. (Not necessarily true, but
it's ok for most purposes and Vim works fine even if it is
incorrect)
- pltags.pl comments

Perl::Tags::Tag::Sub

type: s

on_register

Make a tag for this sub unless we're told not to. We assume
that a sub is static, unless it appears in a package. (Not
necessarily true, but it's ok for most purposes and Vim works
fine even if it is incorrect)
- pltags comments

Perl::Tags::Tag::Constant

type: c

Perl::Tags::Tag::Label

type: l

Perl::Tags::Tag::Recurse

type: dummy

This is a pseudo-tag, see "register" in Perl::Tags.

on_register

Recurse adding this new module to the queue.