in reply to Re: curly braces around a lexical file handle
in thread curly braces around a lexical file handle

Interestingly, in all cases, either the block is optional, or there's an alternative, non-block syntax:
map EXPR, LIST; grep EXPR, LIST; print LIST; print BAREWORD LIST; print $HANDLE LIST; exec STRING; exec LIST; system STRING; system LIST;
And some you missed, also have a non-block syntax:
sort BLOCK LIST; sort SUBNAME LIST; sort LIST; eval BLOCK; eval STRING;
Not sure whether there's a common issue behind this, or that it's just a coincidence.

Replies are listed 'Best First'.
Re^3: curly braces around a lexical file handle
by ikegami (Patriarch) on May 31, 2010 at 20:26 UTC
    You missed do (which has a non-block syntax as well).