2008-03-01 5.2 ハッシュ内に特定のキーがあるかどうか検証する Perl Cookbook # exists関数を使う if (exists ($HASH{$KEY}) { # KEYがある場合 } else { # KEYが無い場合 }