Added an example for Perl hash exists

Added an example to demonstrate the Perl hash exists function.