CPU: Perl, Fall 2005 Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables #52

Exists & Delete

$hash{foo} = undef;
if ( exists $hash{foo} ) { print "yes\n" }
delete $hash{foo}
Copyright © 2005 Ian Langworth