Login
Introduced is_perl_bareword() utility function. This is to help the
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Thu, 22 Mar 2007 08:26:38 +0000 (08:26 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Thu, 22 Mar 2007 08:26:38 +0000 (08:26 +0000)
commit3ca95ec9565239eff603c16c9716ae4f6c2e1d0c
treebb94c75cedcda0f10bbea623d4c6f2d59ebc4a79
parentbdaf4dac2ca327e8b3fc50f82f1e30e0fa2dee2f
Introduced is_perl_bareword() utility function.  This is to help the
StricterSubs policies.

Subsequently, is_function_call() now returns false if the argument
is a perl bareword, which makes sense since function calls are not
the same as control keywords.

This change in behavior for is_function_call necessitated a slight
change in the way ProhibitPostfixControls finds its keywords.
lib/Perl/Critic/Policy/ControlStructures/ProhibitPostfixControls.pm
lib/Perl/Critic/Utils.pm