Hi,

What's the preferred waying of doing things...

if ($var eq '')

or

if (defined $var)

I assume they both mean pretty much the same thing?


Tristan


You Wrote:
----------

Hi Tanton,

Yes, but what I really want it to do is go though all the values of the
hash and if any of them contain null values then print that out and tell
me whick key(s) value(s) contains null values?  Is this possible?

Therefore...

foreach $hash_key (keys %hash) {
  if ($hash{$_} == "" || $hash{$_} eq "") {
    print $hash{$hash_key}, "Contains a null value!\n";
  else {
    print "It worked!\n";
  }
}

Thx,

Dan


_______________________________________________________
sent via the murky.net webmail hegemony

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to