testlib.pm

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PM 代码 · 共 42 行

PM
42
字号
package ExtUtils::testlib;use strict;use vars qw($VERSION);$VERSION = 6.42;use Cwd;use File::Spec;# So the tests can chdir around and not break @INC.# We use getcwd() because otherwise rel2abs will blow up under taint# mode pre-5.8.  We detaint is so @INC won't be tainted.  This is# no worse, and probably better, than just shoving an untainted, # relative "blib/lib" onto @INC.my $cwd;BEGIN {    ($cwd) = getcwd() =~ /(.*)/;}use lib map File::Spec->rel2abs($_, $cwd), qw(blib/arch blib/lib);1;__END__=head1 NAMEExtUtils::testlib - add blib/* directories to @INC=head1 SYNOPSIS  use ExtUtils::testlib;=head1 DESCRIPTIONAfter an extension has been built and before it is installed it may bedesirable to test it bypassing C<make test>. By adding    use ExtUtils::testlib;to a test program the intermediate directories used by C<make> areadded to @INC.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?