Subject: | ProhibitCallsToUndeclaredSubs versus print |
Date: | Mon, 16 Jun 2008 09:06:23 +1000 |
To: | bug-Perl-Critic-StricterSubs [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With perlcritic 1.084, strictersubs 0.03, and the debian packaged perl
5.10.0, the file bar.pl below run through
perlcritic --single-policy=ProhibitCallsToUndeclaredSubs bar.pl
doesn't print any warnings, where I hoped it would tell me "somefunc"
isn't declared.
I know perl does some hairy stuff to decide whether the first word to a
print is a file handle. A "somefunc(" with no whitespace before the "("
seems to be taken to be a function call.
Message body is not shown because sender requested not to inline it.