On Thu Jun 25 16:42:34 2015, mads@kiilerich.com wrote:
Show quoted text> $ echo 'switch (1) { case x { 2 } else { } }' | perltidy -se
> 1: expecting 'else' to follow one of 'if|elsif|unless|case|when'
> switch (1) {
> case x { 2 } else { }
> }
>
> $ perltidy -v | head -n1
> This is perltidy, v20140711
In Perl switch is implemented with given/when operators.
--
Alexandr Ciornii,
http://chorny.net