Perl 5.8.x 版本更新内容全解析
1. 诊断信息的新变化与改进
在最新的更新中,与 pack() 和 unpack() 相关的警告信息变得更具信息量且更加一致。同时,部分警告信息也进行了修改和移除:
- 线程退出警告修改 :原警告信息 “A thread exited while %d other threads were still running” 存在误导性,因为 “other” 包含了发出警告的线程,现改为 “A thread exited while %d threads were running”。
- 移除受限哈希清除警告 :清除受限哈希并非非法操作,因此移除了 “Attempt to clear a restricted hash” 警告。
- 新增匿名子例程非法声明警告 :声明匿名子例程时必须指定代码块。
- 转译操作符范围无效警告修改 :原警告 “Invalid [] range "%s" in transliteration operator” 有误,因为 tr/// 中不存在 “[] ranges”,现改为 “Invalid range %s in transliteration operator”。
- 新增其他警告 :如 “Missing control char name in \c”、“Newline in left - justified string
超级会员免费看
订阅专栏 解锁全文
11

被折叠的 条评论
为什么被折叠?



