in reply to Shortening "$bar{foo} if exists $bar{foo}"?
I wouldn't actually write that though. I'd write it the way you originally stated: expr->() if expr.