> Is it possible to test if a hash variable is set? My thinking is something kinda
>like this:
>
> if ( $hashname[variable] ) {
> do something smart again ;
> }
that's $hashname{variable}, not [variable]...
Yes, you can do that, but if you also turned on warnings,
you will receive a warning. To get rid of this warning :
&do_sth if (exists $hash{var});
or
&do_sth if (defined $hash{var});
Rgds,
Connie
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
