How about this Perl6-ish way:
It's still about as much typing, though.given %foo{bar} { .() if exists }
In reply to Re: Re: Shortening "$bar{foo} if exists $bar{foo}"?
by kelan
in thread Shortening "$bar{foo} if exists $bar{foo}"?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |