http://qs321.pair.com?node_id=296538


in reply to Re: Shortening "$bar{foo} if exists $bar{foo}"?
in thread Shortening "$bar{foo} if exists $bar{foo}"?

How about this Perl6-ish way:

given %foo{bar} { .() if exists }
It's still about as much typing, though.

kelan


Perl6 Grammar Student