【发布时间】:2021-03-10 09:37:00
【问题描述】:
我要表达:
%MON = months => 1, end_of_month => 'limit'; # months => undef
%MON = ( months => 1, end_of_month => 'limit' );
为什么第一个表达式只有一个键 months 和 undef 值?
它们有什么区别?
【问题讨论】:
标签: perl operators operator-precedence assignment-operator perl-hash