7 subs - Perl pragma to predeclare sub names
16 This will predeclare all the subroutine whose names are
17 in the list, allowing you to use them without parentheses
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 BLOCK-scoped. They are thus effective
22 for the entire file in which they appear. You may not rescind such
23 declarations with C<no vars> or C<no subs>.
25 See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>.
32 my $callpack = caller;
35 foreach $sym (@imports) {
36 *{"${callpack}::$sym"} = \&{"${callpack}::$sym"};