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


in reply to Re: Surpised by foreach iterator limitation
in thread Surpised by foreach iterator limitation

Beware. That special syntax DWIMmery was introduced in 5.6. 5.5 and earlier required the outer parens.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.