> gl> exists($userlist->{PaulSmith}->{Age})
So is the safe form
exists $userlist->{my $key='PaulSmith'}
&& ref $userlist->{$key}
&& exists($userlist->{$key}->{Age}}
give or take the final -> which is iirc elidable?
I will agree with Greg that in a DWIMERY sense, exists() might be presumed to
create a non-auto-vivifing context. Alas, in Perl5 that is not a pervasive
context, but merely how Exists evaluates it's effective operand. Maybe Greg
should propose this to the Perl6 team!
bill
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm