Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Perl 的新手,但我需要知道如何让变量包含为 Windows 规范化的特定路径。
谢谢, MaMd0u7
http://perldoc.perl.org/File/Spec.html
use File::Spec::Win32 my $dir = File::Spec::Win32->catfile('directory','tree','file.html'); print $dir; output: directory\tree\file.html
有什么用吗?