Perl delete Function
This function deletes the specified keys and associated values from a hash, or the specified elements from an array. The operation works on individual elements or slices.
Following is the simple syntax for this function:
This function returns undef if the key does not exist and value associated with the deleted hash key or array index.
Following is the example code showing its basic usage, it deletes all the values of %HASH and @ARRAY:
When above code is executed, it produced following result: