5 subs - Perl pragma to predeclare sub names
14 This will predeclare all the subroutine whose names are
15 in the list, allowing you to use them without parentheses
16 even before they're declared.
18 Unlike pragmas that affect the C<$^H> hints variable, the C<use vars> and
19 C<use subs> declarations are not BLOCK-scoped. They are thus effective
20 for the entire file in which they appear. You may not rescind such
21 declarations with C<no vars> or C<no subs>.
23 See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>.
30 my $callpack = caller;
33 foreach $sym (@imports) {
34 *{"${callpack}::$sym"} = \
&{"${callpack}::$sym"};