【问题标题】:What are different possible values for POSIX::uname() release number on Windows?Windows 上的 POSIX::uname() 版本号有哪些不同的可能值?
【发布时间】:2013-10-29 04:33:36
【问题描述】:

我想确定使用POSIX::uname 的Windows 版本。我知道它在 Windows 2012 上返回 6.2。我找到了一个包含这些值、Windows 版本和相应版本号的表格,但我再也找不到了。我一直在搜索文档,但我现在无法在每个操作系统上运行 uname 来测试它。有谁有链接或知道哪些数字对应于哪个版本的 Windows?

http://perldoc.perl.org/perlport.html

http://perldoc.perl.org/POSIX.html

【问题讨论】:

    标签: windows perl uname


    【解决方案1】:

    在 Windows 上,POSIX::unameGetVersionEx 获取其信息,其参数的 documentation 包含一个表。

    Win32 模块提供了更多用户友好的调用。

    >perl -MWin32 -E"say Win32::GetOSDisplayName()"
    Windows 7 Professional (64-bit) Service Pack 1
    

    【讨论】:

    • 非常感谢!那不是我之前找到的表格,但它具有相同的信息。
    猜你喜欢
    • 2017-12-20
    • 1970-01-01
    • 2020-03-09
    • 1970-01-01
    • 1970-01-01
    • 2022-07-23
    • 2012-08-20
    • 2018-05-11
    • 1970-01-01
    相关资源
    最近更新 更多