bret.foreman has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Bret#!/usr/bin/perl use strict; my %testhash = { 'key1' => 'val1' , 'key2' => 'val2' }; printf "Exists for key1 = %d\n", exists $testhash{'key1'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exists puzzle
by japhy (Canon) on Aug 04, 2004 at 18:49 UTC | |
|
Re: exists puzzle
by Ovid (Cardinal) on Aug 04, 2004 at 18:51 UTC | |
|
Re: exists puzzle
by ccn (Vicar) on Aug 04, 2004 at 18:53 UTC | |
|
Re: exists puzzle
by QM (Parson) on Aug 04, 2004 at 20:22 UTC |