Pm/TEMPLATE.pm
Copying Source is Forbidden
40 lines of code
1
package TEMPLATE;
2
3
#/
4
# a template pm
5
#
6
# uses:
7
# <a href='?pm=TEMPLATE'>TEMPLATE</a>
8
#/
9
10
use strict;
11
use warnings;
12
use CGI::Carp qw(fatalsToBrowser);
13
use Exporter;
14
use vars qw($VERSION @ISA @EXPORT_OK @EXPORT);
15
use CGI;
16
17
$VERSION = 1.00;
18
@ISA = qw(Exporter);
19
20
##########################
21
22
#use statements here
23
#use lib "./Pm";
24
25
##########################
26
27
my $TABLE_BORDER = 0;
28
my $DEBUG = 0;
29
30
push @EXPORT_OK, "an_exported_sub";
31
sub an_exported_sub($$) {
32
#*
33
# an exported sub description/information
34
#*
35
my ($param1, $param2) = @_; # param one && param 2
36
return 1; # a return value of 1 (aka true)
37
#usage: my $val = an_exported_sub($someval, $someotherval);
38
}
39
40
1;