Curly braces are overloaded - they can signify either a hash or a block
+{ Prepending a plus sign forces it to be interpreted as a hash.
{; Adding a semicolon forces it to be interpreted as a block.
Sources:
- The Case of the Overloaded Curlys
- perlref
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.