hughperl has asked for the wisdom of the Perl Monks concerning the following question:
when i have;print "Exists\n" if exists $hash{$key};
I get a "use of uninitialized value warning" I know some values are uninitialised, and wanted to use the above function to seperate them out. Is there a way to do this without being warned!? Many thanks for your thoughts.use strict; use warnings; use diagnostics;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash defined?
by Roy Johnson (Monsignor) on Mar 06, 2008 at 20:41 UTC | |
|
Re: hash defined?
by locked_user sundialsvc4 (Abbot) on Mar 06, 2008 at 22:28 UTC | |
|
Re: hash defined?
by whakka (Hermit) on Mar 06, 2008 at 20:47 UTC |