http://www.perlmonks.org?node_id=1197373


in reply to array push fails

NetWallah++ for beating me to the answer. :)

This has been asked before... See also: Using ternary operator as lvalue in push.