diff options
author | Norbert Preining <preining@logic.at> | 2010-05-12 16:51:27 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2010-05-12 16:51:27 +0000 |
commit | b645030efc22e13c2498a1522083634ab91b2de1 (patch) | |
tree | c75c7a71998200d419af56eb755dac2f5115b585 /Master/tlpkg/tlperl/lib/subs.pm | |
parent | 44ccd4efc5352f9eb1099ba357708e7b5ff03b83 (diff) |
move tlperl to tlperl.old
git-svn-id: svn://tug.org/texlive/trunk@18209 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/subs.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/subs.pm | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Master/tlpkg/tlperl/lib/subs.pm b/Master/tlpkg/tlperl/lib/subs.pm deleted file mode 100644 index e5a9aa8827d..00000000000 --- a/Master/tlpkg/tlperl/lib/subs.pm +++ /dev/null @@ -1,40 +0,0 @@ -package subs; - -our $VERSION = '1.00'; - -=head1 NAME - -subs - Perl pragma to predeclare sub names - -=head1 SYNOPSIS - - use subs qw(frob); - frob 3..10; - -=head1 DESCRIPTION - -This will predeclare all the subroutine whose names are -in the list, allowing you to use them without parentheses -even before they're declared. - -Unlike pragmas that affect the C<$^H> hints variable, the C<use vars> and -C<use subs> declarations are not BLOCK-scoped. They are thus effective -for the entire file in which they appear. You may not rescind such -declarations with C<no vars> or C<no subs>. - -See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>. - -=cut - -require 5.000; - -sub import { - my $callpack = caller; - my $pack = shift; - my @imports = @_; - foreach $sym (@imports) { - *{"${callpack}::$sym"} = \&{"${callpack}::$sym"}; - } -}; - -1; |