.PM - File Extension for Perl Module Files


What is PM? PM, short name for Perl Module, is used as the file extension for Perl Module source code files. .PM files are text files that can be opened by Notepad or any text editors. See the sample .PM file included below.

✍: FYIcenter.com


File Extension: .PM

MIME Type: text/plain

File Content: Perl Module

.PM files are Perl Module files, which contains source code for a Perl module Here is a sample .PM Perl Module file with 2 simple methods:

use strict;
use Exporter;

$VERSION     = 1.00;
@ISA         = qw(Exporter);
@EXPORT      = ();
@EXPORT_OK   = qw(func1 func2);
%EXPORT_TAGS = ( DEFAULT => [qw(&func1)],
                 Both    => [qw(&func1 &func2)]);

sub func1  { return reverse @_  }
sub func2  { return map{ uc }@_ }


.PM Perl Module file sample: Click sample.pm to download.

Since .PM text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

For for information on how to use .PM Perl Module files, see links below:

2012-07-10, 6433👍, 0💬