summaryrefslogtreecommitdiff
path: root/lib/subs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subs.pm')
-rw-r--r--lib/subs.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/subs.pm b/lib/subs.pm
index 8b5835770f..0dbbaddd11 100644
--- a/lib/subs.pm
+++ b/lib/subs.pm
@@ -1,5 +1,23 @@
package subs;
+=head1 NAME
+
+subs - Perl pragma to predeclare sub names
+
+=head1 SYNOPSIS
+
+ use subs qw(frob);
+ frob 3..10;
+
+=head1 DESCRIPTION
+
+This will predeclare all the subroutine whose names are
+in the list, allowing you to use them without parentheses
+even before they're declared.
+
+See L<perlmod/Pragmatic Modules> and L<strict/subs>.
+
+=cut
require 5.000;
$ExportLevel = 0;