On May 28, 2008, at 11:58 AM, Shafiek Rasdien via RT wrote:
Show quoted text>
> Wed May 28 12:58:27 2008: Request 36249 was acted upon.
> Transaction: Ticket created by shafiek@is.co.za
> Queue: Perl-Critic
> Subject: anon hash ref treated as code block
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: shafiek@is.co.za
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=36249 >
>
>
> $ perlcritic --Version
> 1.084
>
> my $o = shift || {'file' => 1, 'exec' => 1};
>
> yields
>
> Comma used to separate statements ... (Severity: 4)
This looks like a bug in PPI. I don't have time to investigate right
now -- would someone be willing to re-file this as a PPI defect?
Chris