Subject: | 2-arg open that is not criticized |
I was writing 3-arg open check for Perl::MinimumVersion and decided to
check one of test examples in perlcritic.
For this program:
use strict;
open my $a,'testing' or die "error: ",$!;
open (my $a,'testing') or die "error: ",$!;
perlcritic complains only about second open.
--
Alexandr Ciornii, http://chorny.net