Subject: | documentation bug re: fat comma |
From the docs:
----------------------------------------------------------
catch_case [
+ErrTooBig => sub { warn "Too big!" },
+ErrTooSmall => sub { warn "Too small!" },
"Throwable::Taxonomy::NotImplemented" => sub { warn $_ },
];
(Note the plus signs in the catch_case above; this ensures ErrTooBig and ErrToString are not auto-quoted by the fat comma.)
----------------------------------------------------------
This is wrong. If you want to prevent autoquoting, you have to put tokens between the bareword and =>, for example:
ErrTooBig() => ...
(ErrTooBig) => ...
ErrTooBig ,=> ...
do { ErrTooBig } => ...