📄 getshortpathname.t
字号:
use strict;use Test;use Win32;my $path = "Long Path $$";unlink($path);END { unlink $path }plan tests => 5;Win32::CreateFile($path);ok(-f $path);my $short = Win32::GetShortPathName($path);ok($short, qr/^\S{1,8}(\.\S{1,3})?$/);ok(-f $short);unlink($path);ok(!-f $path);ok(!defined Win32::GetShortPathName($path));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -