The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perl::Critic::Policy::Subroutines::ProhibitAmbiguousFunctionCalls - Don't call fully qualified function methods without parens

DESCRIPTION

When writing code like this...

  Some::Class::Name::foo->mymethod

..it is not clear if 'foo' is part of the class, or a function within Some::Class::Name. The better way to write it is:

  Some::Class::Name::foo()->method

CONFIGURATION

method_always_ok (string list, default is "new add")

A list of method names which should always be considered "ok"

uppercase_module_always_ok (boolean, defaults to true)

Indicates whether module names starting with an uppercase letter are considered "ok".

For example, Foo::Bar->pop; is considered ok by default, but Foo::bar->pop is not.

INHERITED METHODS

Perl::Critic::Policy

add_themes, default_maximum_violations_per_document, get_abstract, get_format, get_long_name, get_maximum_violations_per_document, get_parameters, get_raw_abstract, get_severity, get_short_name, get_themes, initialize_if_enabled, is_enabled, is_safe, new, new_parameter_value_exception, parameter_metadata_available, prepare_to_scan_document, set_format, set_maximum_violations_per_document, set_severity, set_themes, throw_parameter_value_exception, to_string, violation