implicit

来自「source of perl for linux application,」· 代码 · 共 63 行

TXT
63
字号
Check implicit loading of features with use VERSION.__END__# Standard feature bundleuse feature ":5.10";say "Hello", "world";EXPECTHelloworld######### VERSION requirement, dotted notationuse 5.9.5;say "Hello", "world";EXPECTHelloworld######### VERSION requirement, v-dotted notationuse v5.9.5;say "Hello", "world";EXPECTHelloworld######### VERSION requirement, decimal notationuse 5.009005;say defined $INC{"feature.pm"} ? "Helloworld" : "Good bye";EXPECTHelloworld######### VERSION requirement, doesn't load anything for < 5.9.5use 5.8.8;print "<".$INC{"feature.pm"}.">\n";EXPECT<>######### VERSION requirement, doesn't load anything with requirerequire 5.9.5;print "<".$INC{"feature.pm"}.">\n";EXPECT<>######### VERSION requirement in eval {}eval {    use 5.9.5;    say "Hello", "world";}EXPECTHelloworld######### VERSION requirement in eval ""eval q{    use 5.9.5;    say "Hello", "world";}EXPECTHelloworld######### VERSION requirement in BEGINBEGIN {    use 5.9.5;    say "Hello", "world";}EXPECTHelloworld

⌨️ 快捷键说明

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