← 返回卡片

原书出处

架构师之路

一分钟系列 73 十分钟学perl够用(客服MM都懂了)

核验版本的摘录快照 · 导入于 2026-11-27T10:40:17.170Z

world=>5 i=>1 7.7哈希的查询与删除

(1)查询一个键是否存在,使用exists函数; (2)删除一个键,使用delete函数; #!/usr/bin/perl -w %hash_one=( "yes" => 3, "i" => 1, "am" => 2, );

delete($hash_one{"yes"}); if(exists($hash_one{"yes"}))

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/架构师之路/_epub-src/OEBPS/Text/73.html

EPUB SHA-256:4100ac3842d14329f21b43564e3e688d311e568d9632d37709b1e1416f68548b