tmpdir.t
来自「source of perl for linux application,」· T 代码 · 共 27 行
T
27 行
use strict;use Test;# Grab all of the plain routines from File::Specuse File::Spec;use File::Spec::Win32;plan tests => 4;ok 1, 1, "Loaded";my $num_keys = keys %ENV;File::Spec->tmpdir;ok scalar keys %ENV, $num_keys, "tmpdir() shouldn't change the contents of %ENV";if ($^O eq 'VMS') { skip('Can\'t make list assignment to \%ENV on this system', 1);}else { local %ENV; File::Spec::Win32->tmpdir; ok scalar keys %ENV, 0, "Win32->tmpdir() shouldn't change the contents of %ENV";}File::Spec::Win32->tmpdir;ok scalar keys %ENV, $num_keys, "Win32->tmpdir() shouldn't change the contents of %ENV";
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?