1subs(3pm)              Perl Programmers Reference Guide              subs(3pm)
2
3
4

NAME

6       subs - Perl pragma to predeclare sub names
7

SYNOPSIS

9           use subs qw(frob);
10           frob 3..10;
11

DESCRIPTION

13       This will predeclare all the subroutine whose names are in the list,
14       allowing you to use them without parentheses even before they're
15       declared.
16
17       Unlike pragmas that affect the $^H hints variable, the "use vars" and
18       "use subs" declarations are not BLOCK-scoped.  They are thus effective
19       for the entire package in which they appear.  You may not rescind such
20       declarations with "no vars" or "no subs".
21
22       See "Pragmatic Modules" in perlmodlib and "strict subs" in strict.
23
24
25
26perl v5.26.3                      2018-03-01                         subs(3pm)
Impressum