On Tue, Aug 21, 2001 at 11:12:55AM -0700, Wagner-David wrote:
>       You can do: 
>       
>       if ( exists $hash{$Key} ) {
>          # the key exists, so do your check
>        }else {
>          # key does not exist, so add to hash
>        }       
> 
>       Also can use defined, but depending on how accessing there is
>       auto-vivfying(sp), which may create(if use is as defined
>       $hash->{$Key} ) then from the list I see the auto-vivfying kicking
>       in.

>From your description it sounds like you think $Key will be autovivified in
%$hash if you say $hash->{$Key}.  The only thing autovivified in that case
is $hash, which is autovified as a hash reference.

I just wanted to make it clear that's what's happening.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to