Title: Existence of key
Never mind.  I feel silly.  "exists" is it exactly.  I just wasn't being careful enough about testing it out.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 12:45 PM
To: [EMAIL PROTECTED]
Subject: Existence of key

Is there a way to check to see if a hash's key exists at all? For example:

$hash{"key1"}="goober";
$hash{"key2"}="";

Something like:

if exists($hash{"key3"} { print "key3 exists!" }

Reply via email to