Jonadab the Unsightly One said:

>   $s = %h{foo} = nonex;
>
> After deleting the foo key (and its value, if any) from %h this then
> probably procedes to autovivify it when evaluating it as an rvalue;

Now why on earth would you want to do that?  Perl 5 doesn't.

By the way, I trust this will be addressed (if it hasn't been already):

perl5 -le 'print "gah!" if exists $a{b}{c}; print "phooey!" if exists $a{b}'

perlfunc says:

  This surprising autovivification in what does not at first--or even
  second--glance appear to be an lvalue context may be fixed in a future
  release.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to