printf "grep: %s\n", (join " ... ", grep { $_ } $$h{a}, $$h{x}, $$h{b}, $$h{c});
Not a problem with grep. $$h{x} is autovivified before grep happens.
Alexander
In reply to Re: unexpected modify hash in a distance with grep { $_ }
by afoken
in thread unexpected modify hash in a distance with grep { $_ }
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |