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