prints "auto-vivi".{ my %h; 1 if exists $h{foo}{bar}; print("exists 2: ", (%h ? "auto-vivi" : "empty"), "\n"); }
But for some reason I thought it was easier to autovivify keys.
In reply to Re^4: Hashing it out: defined? exists?
by Nkuvu
in thread Hashing it out: defined? exists?
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |