亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? conditional.pm

?? source of perl for linux application,
?? PM
?? 第 1 頁 / 共 2 頁
字號:
package Module::Load::Conditional;use strict;use Module::Load;use Params::Check                       qw[check];use Locale::Maketext::Simple Style  => 'gettext';use Carp        ();use File::Spec  ();use FileHandle  ();use version     qw[qv];use constant ON_VMS  => $^O eq 'VMS';BEGIN {    use vars        qw[ $VERSION @ISA $VERBOSE $CACHE @EXPORT_OK                         $FIND_VERSION $ERROR $CHECK_INC_HASH];    use Exporter;    @ISA            = qw[Exporter];    $VERSION        = '0.22';    $VERBOSE        = 0;    $FIND_VERSION   = 1;    $CHECK_INC_HASH = 0;    @EXPORT_OK      = qw[check_install can_load requires];}=pod=head1 NAMEModule::Load::Conditional - Looking up module information / loading at runtime=head1 SYNOPSIS    use Module::Load::Conditional qw[can_load check_install requires];    my $use_list = {            CPANPLUS        => 0.05,            LWP             => 5.60,            'Test::More'    => undef,    };    print can_load( modules => $use_list )            ? 'all modules loaded successfully'            : 'failed to load required modules';    my $rv = check_install( module => 'LWP', version => 5.60 )                or print 'LWP is not installed!';    print 'LWP up to date' if $rv->{uptodate};    print "LWP version is $rv->{version}\n";    print "LWP is installed as file $rv->{file}\n";    print "LWP requires the following modules to be installed:\n";    print join "\n", requires('LWP');    ### allow M::L::C to peek in your %INC rather than just    ### scanning @INC    $Module::Load::Conditional::CHECK_INC_HASH = 1;    ### reset the 'can_load' cache    undef $Module::Load::Conditional::CACHE;    ### don't have Module::Load::Conditional issue warnings --    ### default is '1'    $Module::Load::Conditional::VERBOSE = 0;    ### The last error that happened during a call to 'can_load'    my $err = $Module::Load::Conditional::ERROR;=head1 DESCRIPTIONModule::Load::Conditional provides simple ways to query and possibly load any ofthe modules you have installed on your system during runtime.It is able to load multiple modules at once or none at all if one ofthem was not able to load. It also takes care of any error checkingand so forth.=head1 Methods=head1 $href = check_install( module => NAME [, version => VERSION, verbose => BOOL ] );C<check_install> allows you to verify if a certain module is installedor not. You may call it with the following arguments:=over 4=item moduleThe name of the module you wish to verify -- this is a required key=item versionThe version this module needs to be -- this is optional=item verboseWhether or not to be verbose about what it is doing -- it will defaultto $Module::Load::Conditional::VERBOSE=backIt will return undef if it was not able to find where the module wasinstalled, or a hash reference with the following keys if it was ableto find the file:=over 4=item fileFull path to the file that contains the module=item versionThe version number of the installed module - this will be C<undef> ifthe module had no (or unparsable) version number, or if the variableC<$Module::Load::Conditional::FIND_VERSION> was set to true.(See the C<GLOBAL VARIABLES> section below for details)=item uptodateA boolean value indicating whether or not the module was found to beat least the version you specified. If you did not specify a version,uptodate will always be true if the module was found.If no parsable version was found in the module, uptodate will also betrue, since C<check_install> had no way to verify clearly.=back=cut### this checks if a certain module is installed already ###### if it returns true, the module in question is already installed### or we found the file, but couldn't open it, OR there was no version### to be found in the module### it will return 0 if the version in the module is LOWER then the one### we are looking for, or if we couldn't find the desired module to begin with### if the installed version is higher or equal to the one we want, it will return### a hashref with he module name and version in it.. so 'true' as well.sub check_install {    my %hash = @_;    my $tmpl = {            version => { default    => '0.0'    },            module  => { required   => 1        },            verbose => { default    => $VERBOSE },    };    my $args;    unless( $args = check( $tmpl, \%hash, $VERBOSE ) ) {        warn loc( q[A problem occurred checking arguments] ) if $VERBOSE;        return;    }    my $file     = File::Spec->catfile( split /::/, $args->{module} ) . '.pm';    my $file_inc = File::Spec::Unix->catfile(                         split /::/, $args->{module}                     ) . '.pm';    ### where we store the return value ###    my $href = {            file        => undef,            version     => undef,            uptodate    => undef,    };        my $filename;    ### check the inc hash if we're allowed to    if( $CHECK_INC_HASH ) {        $filename = $href->{'file'} =             $INC{ $file_inc } if defined $INC{ $file_inc };        ### find the version by inspecting the package        if( defined $filename && $FIND_VERSION ) {            no strict 'refs';            $href->{version} = ${ "$args->{module}"."::VERSION" };         }    }         ### we didnt find the filename yet by looking in %INC,    ### so scan the dirs    unless( $filename ) {        DIR: for my $dir ( @INC ) {                my $fh;                if ( ref $dir ) {                ### @INC hook -- we invoke it and get the filehandle back                ### this is actually documented behaviour as of 5.8 ;)                    if (UNIVERSAL::isa($dir, 'CODE')) {                    ($fh) = $dir->($dir, $file);                    } elsif (UNIVERSAL::isa($dir, 'ARRAY')) {                    ($fh) = $dir->[0]->($dir, $file, @{$dir}{1..$#{$dir}})                    } elsif (UNIVERSAL::can($dir, 'INC')) {                    ($fh) = $dir->INC->($dir, $file);                }                    if (!UNIVERSAL::isa($fh, 'GLOB')) {                    warn loc(q[Cannot open file '%1': %2], $file, $!)                            if $args->{verbose};                    next;                }                    $filename = $INC{$file_inc} || $file;                } else {                $filename = File::Spec->catfile($dir, $file);                next unless -e $filename;                    $fh = new FileHandle;                if (!$fh->open($filename)) {                    warn loc(q[Cannot open file '%1': %2], $file, $!)                            if $args->{verbose};                    next;                }            }                ### files need to be in unix format under vms,            ### or they might be loaded twice            $href->{file} = ON_VMS                ? VMS::Filespec::unixify( $filename )                : $filename;                ### user wants us to find the version from files            if( $FIND_VERSION ) {                                my $in_pod = 0;                while (local $_ = <$fh> ) {                        ### stolen from EU::MM_Unix->parse_version to address                    ### #24062: "Problem with CPANPLUS 0.076 misidentifying                    ### versions after installing Text::NSP 1.03" where a                     ### VERSION mentioned in the POD was found before                    ### the real $VERSION declaration.                    $in_pod = /^=(?!cut)/ ? 1 : /^=cut/ ? 0 : $in_pod;                    next if $in_pod;                                        ### try to find a version declaration in this string.                    my $ver = __PACKAGE__->_parse_version( $_ );                    if( defined $ver ) {                        $href->{version} = $ver;                                last DIR;                    }                }            }        }    }        ### if we couldn't find the file, return undef ###    return unless defined $href->{file};    ### only complain if we're expected to find a version higher than 0.0 anyway    if( $FIND_VERSION and not defined $href->{version} ) {        {   ### don't warn about the 'not numeric' stuff ###            local $^W;            ### if we got here, we didn't find the version            warn loc(q[Could not check version on '%1'], $args->{module} )                    if $args->{verbose} and $args->{version} > 0;        }        $href->{uptodate} = 1;    } else {        ### don't warn about the 'not numeric' stuff ###        local $^W;                ### use qv(), as it will deal with developer release number        ### ie ones containing _ as well. This addresses bug report        ### #29348: Version compare logic doesn't handle alphas?        $href->{uptodate} =             qv( $args->{version} ) <= qv( $href->{version} ) ? 1 : 0;    }    return $href;}sub _parse_version {    my $self    = shift;    my $str     = shift or return;    my $verbose = shift or 0;    ### skip commented out lines, they won't eval to anything.    return if $str =~ /^\s*#/;            ### the following regexp & eval statement comes from the     ### ExtUtils::MakeMaker source (EU::MM_Unix->parse_version)     ### Following #18892, which tells us the original

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中日韩av电影| 中文字幕在线不卡一区二区三区| 国产麻豆视频精品| 亚洲欧美欧美一区二区三区| 欧美精品一区二区在线观看| 欧美性大战久久| 成人动漫视频在线| 免费一级片91| 亚洲一区二区视频在线| 国产精品私人影院| 欧美mv日韩mv亚洲| 3751色影院一区二区三区| 一本大道av一区二区在线播放| 国产一区二区三区在线看麻豆| 日韩高清不卡一区二区三区| 玉足女爽爽91| 亚洲人成在线播放网站岛国| 国产精品人人做人人爽人人添| 精品免费日韩av| 日韩一区二区三区电影| 在线精品视频免费观看| 91丨九色丨黑人外教| 国产黄色成人av| 国模娜娜一区二区三区| 美女国产一区二区三区| 日韩成人精品视频| 图片区小说区国产精品视频 | 中文字幕一区免费在线观看| 亚洲精品一区二区三区精华液| 欧美一区欧美二区| 7777精品伊人久久久大香线蕉 | 亚洲欧洲99久久| 日本一区二区三区高清不卡| 久久综合狠狠综合久久激情| 精品少妇一区二区| 亚洲精品一线二线三线无人区| 日韩亚洲欧美中文三级| 欧美一区二区三区小说| 欧美一区二区三区色| 欧美一级理论性理论a| 91 com成人网| 日韩精品最新网址| 2021中文字幕一区亚洲| 亚洲精品一区二区三区精华液| 2023国产精品视频| 国产欧美日韩三级| 一区在线中文字幕| 一区二区三区欧美| 亚洲国产三级在线| 日韩黄色小视频| 麻豆精品一区二区av白丝在线| 美女一区二区三区| 国产一区二区不卡老阿姨| 国产一区福利在线| 成人午夜视频在线| 97精品电影院| 欧美日本在线看| 日韩欧美精品在线视频| 久久美女高清视频| 中文字幕亚洲欧美在线不卡| 一区二区在线看| 日韩中文字幕一区二区三区| 精品一区免费av| 不卡的av网站| 777xxx欧美| 欧美激情一区二区三区蜜桃视频| 亚洲日本丝袜连裤袜办公室| 亚洲丰满少妇videoshd| 久久不见久久见免费视频1| 国产高清亚洲一区| 97精品国产露脸对白| 在线不卡欧美精品一区二区三区| 久久人人爽爽爽人久久久| 美日韩一区二区| 国产精品免费久久久久| 午夜久久久久久久久久一区二区| 91丝袜国产在线播放| 欧美精品一卡二卡| 国产女同互慰高潮91漫画| 狠狠狠色丁香婷婷综合激情| 亚洲手机成人高清视频| 欧美xxx久久| 欧美日韩一区久久| 不卡的av在线| 国产精品一区二区三区四区| 日日夜夜免费精品| 亚洲精品成人在线| 国产日本一区二区| 日韩一区二区三区电影在线观看| 91精彩视频在线| 99久久免费视频.com| 国产精品一卡二卡| 精品中文字幕一区二区| 亚洲第一激情av| 成人欧美一区二区三区黑人麻豆 | 国产日韩综合av| 欧美三级中文字| 亚洲国产综合在线| 亚洲色图制服诱惑| 亚洲国产高清在线观看视频| 日韩久久精品一区| 欧美一二三四在线| 欧美丰满少妇xxxxx高潮对白| 色婷婷av一区二区三区软件| 成人午夜电影小说| 国产v综合v亚洲欧| 国产成人午夜精品影院观看视频 | 亚洲日本成人在线观看| 国产日韩欧美麻豆| 欧美精品一区视频| xf在线a精品一区二区视频网站| 91精品国产综合久久福利| 欧美日韩中文字幕精品| 欧美性猛片aaaaaaa做受| 色欧美88888久久久久久影院| 99麻豆久久久国产精品免费优播| 国产一区二区看久久| 国产尤物一区二区| 国产激情一区二区三区四区| 国产精品一区二区在线观看网站| 国产做a爰片久久毛片| 国产麻豆精品久久一二三| 国产成+人+日韩+欧美+亚洲| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 蜜桃视频在线观看一区二区| 日日夜夜精品免费视频| 日韩精品色哟哟| 老汉av免费一区二区三区| 国内精品国产成人国产三级粉色| 国产一区二区导航在线播放| 波多野结衣在线aⅴ中文字幕不卡| 不卡区在线中文字幕| 欧美中文字幕不卡| 日韩亚洲欧美在线| 久久精品视频一区| 亚洲人成网站色在线观看| 伊人色综合久久天天人手人婷| 午夜不卡av免费| 国产精品一区二区x88av| 91蜜桃视频在线| 欧美精品电影在线播放| 精品国产123| 亚洲人成网站色在线观看| 视频一区二区三区在线| 国产成人在线视频免费播放| 日本道精品一区二区三区| 欧美一区二区三区成人| 国产精品女同一区二区三区| 亚洲综合免费观看高清完整版在线 | 国产欧美日韩综合精品一区二区| 综合久久国产九一剧情麻豆| 日日夜夜精品视频免费| 成人小视频免费观看| 欧美年轻男男videosbes| 国产午夜一区二区三区| 亚洲第一成人在线| 高清国产一区二区| 欧美高清精品3d| 国产精品美女www爽爽爽| 日韩经典中文字幕一区| av中文字幕不卡| 精品日韩在线观看| 亚洲香肠在线观看| 东方欧美亚洲色图在线| 制服.丝袜.亚洲.另类.中文| 亚洲欧美日韩中文字幕一区二区三区| 日本三级亚洲精品| 91黄色免费版| 国产精品乱码久久久久久| 欧美aa在线视频| 欧美色手机在线观看| 中文字幕一区二区在线观看| 九九热在线视频观看这里只有精品| 91国内精品野花午夜精品| 中文在线一区二区| 久久91精品久久久久久秒播| 欧美性生交片4| 亚洲欧洲av在线| 成人性生交大片| 国产亚洲午夜高清国产拍精品| 蜜臀久久99精品久久久画质超高清| 色综合中文字幕国产| 欧美mv日韩mv国产网站| 日韩黄色免费电影| 欧美色欧美亚洲另类二区| 亚洲欧美区自拍先锋| av在线综合网| 亚洲同性同志一二三专区| 国产盗摄女厕一区二区三区| 精品久久久影院| 久久99久国产精品黄毛片色诱| 日韩一区二区三区在线| 日韩福利电影在线观看| 欧美一卡在线观看| 日韩高清不卡一区二区三区| 欧美疯狂做受xxxx富婆| 美国毛片一区二区三区| 3751色影院一区二区三区| 免费成人av在线播放| 日韩欧美区一区二|