Double curly braces in perl

curly-braces, perl

Solution

It's a trick usually employed with `do`, see chapter Statement Modifiers in `perlsyn`.

Probably the author wanted to jump out of the block with `next` or the like.

Problem

I was looking at perl code online and came across something I hadn't seen before and can't find out what it's doing (if anything). ``` if($var) {{ ... }} ``` Does anyone know what the double curly braces mean?

Original source