描述
此函数从哈希中删除指定的键和关联的值,或从数组中删除指定的元素。该操作适用于单个元素或切片。
语法
以下是此函数的简单语法-
delete LIST
返回值
如果键不存在,并且与已删除的哈希键或数组索引关联的值,则此函数返回undef。
When above code is executed, it produces the following result −
-->
此函数从哈希中删除指定的键和关联的值,或从数组中删除指定的元素。该操作适用于单个元素或切片。
以下是此函数的简单语法-
delete LIST
如果键不存在,并且与已删除的哈希键或数组索引关联的值,则此函数返回undef。
When above code is executed, it produces the following result −
-->