gpt4 book ai didi

perl - Perl 开关的代码内检查

转载 作者:行者123 更新时间:2023-12-02 17:45:09 26 4
gpt4 key购买 nike

有什么方法可以检查哪些 perl 命令行开关已被激活?例如,如果我运行像 perl -C foo.pl 这样的程序,我希望能够检查 -C 开关是否已激活。任何帮助将不胜感激。

最佳答案

来自perlrun联机帮助页:

The -C flag controls some of the Perl Unicode features.... The read-only magic variable ${^UNICODE} reflects the numeric value of this setting. This variable is set during Perl startup and is thereafter read-only.

还有其他一些命令行开关的神奇变量。 perlrun 或 perlvar 应该有您想要的信息。

关于perl - Perl 开关的代码内检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10731987/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com