Padre::Comment(3pm)

Padre::Comment3pm

Padre comment support library

Overview

This module provides objects which represent a logical comment style for a programming language and implements a range of logic to assist in locating, counting, filtering, adding and removing comments in a document.

Initially, however, it only acts as a central storage location for the comment styles of supported mime types.

Methods

registered

  my @registered = Padre::Comment->registered;

The "registered" method returns the list of all registered MIME types that have a comment style distinct from their parent supertype.

get

  my $comment = Padre::Comment->get('application/x-perl');

The "get" method finds a comment for a specific MIME type. This method checks only the specific string and does not follow the superpath of the mime type. For a full powered lookup, use the "find" method.

Returns a Padre::Comment object or "undef" if the mime type does not have a distinct comment string.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From padre 1.00+dfsg-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.