Subject: | perlcritic fails with filename 0 |
If the input file is called 0 then perlcritic always reports it is okay,
even if it contains errors.
% cat test
#!/usr/bin/perl
# $Id$
use warnings;
use strict;
use 5.010;
say 'hello';
% perlcritic -1 test
No "VERSION" variable found at line 1, column 1. See page 404 of PBP.
(Severity: 2)
% mv test 0
% perlcritic -1 0
0 source OK
(Some perlcritic tests for catching this kind of bug would be very
welcome...)