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 -Mstrict -wle '@2014 = 3..6; print "@2014"'
(这里没有警告)
从perlvar:
以数字、控制字符或标点字符开头的 Perl 标识符不受包声明的影响,并且总是强制在包 main 中;它们也免于严格的“vars”错误。