Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
exists « Hash « Perl
Perl
Hash
exists
1.
Determine if a particular key exists
2.
If an entry exist
3.
The exists function returns true if a hash key (or array index) has been defined, and false if not.
4.
To tell if a given key name exists in a hash, you can use the exists operator.
5.
Using 'if exists' to check the entry in hash