# perl(9)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## SYNOPSIS

perl - Practical Extraction and Report Language File.

## FILES

hkperl.emf - Practical Extraction and Report Language file hook definition
perl.etf - Practical Extraction and Report Language header template file.
perl.eaf - Practical Extraction and Report Language abbreviation file.

## EXTENSIONS

.pl, .pm - Perl file

## MAGIC STRINGS

#![ \t]*/.*perl

MicroEmacs 2009 recognizes the magic string on the first line of the file used to locate the executable. The Perl files may be extension-less and are still recognized.

# -*- perl -*-

MicroEmacs 2009 recognizes the standard GNU Emacs magic string on the first line of the file. The Perl files may be extension-less and are still recognized.

## DESCRIPTION

The perl file type template provides the hilighting, indentation and tools definitions for a perl file.

File recognition is performed using the standard file extension .pl, .pm or by the magic string.

General Editing

On creating a new file, a new header is automatically included into the file. time(2m) is by default enabled, allowing the modification time-stamp to be maintained in the header.

Hilighting

The hilighting features allow commands, variables, logical, comments, strings and characters of the language to be differentiated and rendered in different colors.

Auto Layout

The indentation mechanism is enabled which performs automatic layout of the text. restyle-region(3) and restyle-buffer(3) are available to reformat (re-layout) selected sections of the buffer, or the whole buffer, respectively.

Folding and Information Hiding

Generic folding is enabled within perl files. The folds occur about sub...} located on the left-hand margin. collapse-all(3) (un)folds all regions in the file, collapse-current(3) (un)folds the current region.

Short Cuts

The short cut keys used within the buffer are:-

C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c esc esc - Command complete.
A-C-i - Restyle the current region.
f2 - (un)fold the current region
f3 - (un)fold all regions

Debugging

Debugging a perl script can be done inside MicroEmacs by using the perldb(3) command.

## BUGS

The flexibility of the perl language does cause some hilighting anomalies from time to time, typically with unbalanced quote characters. Most of the common exceptions have been caught, however there are a few syntax sequences that involve quotation marks that can cause problems.

## SEE ALSO

collapse-all(3), collapse-current(3), indent(2), perldb(3), restyle-buffer(3), restyle-region(3), time(2m).

Supported File Types

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>