7 subs - Perl pragma to predeclare subroutine names
16 This will predeclare all the subroutines whose names are
17 in the list, allowing you to use them without parentheses (as list operators)
18 even before they're declared.
20 Unlike pragmas that affect the C<$^H> hints variable, the C<use vars> and
21 C<use subs> declarations are not lexically scoped to the block they appear
23 the entire package in which they appear. It is not possible to rescind these
24 declarations with C<no vars> or C<no subs>.
26 See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>.
33 my $callpack = caller;
36 foreach my $sym (@imports) {
37 *{"${callpack}::$sym"} = \&{"${callpack}::$sym"};