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

Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes"

Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes - Write q{} instead of ''. River stage three • 133 direct dependents • 408 total dependents

Don't use quotes for an empty string or any string that is pure whitespace. Instead, use "q{}" to improve legibility. Better still, created named values like this. Use the "x" operator to repeat characters. $message = ''; #not ok $message = ""; #not ...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC

Perl::Critic - Critique Perl source code for best-practices. River stage three • 133 direct dependents • 408 total dependents

Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC

Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes - Use q{} or qq{} instead of quotes for awkward-looking strings. River stage three • 133 direct dependents • 408 total dependents

Don't use quotes for one or two-character strings of non-alphanumeric characters (i.e. noise). These tend to be hard to read. For legibility, use "q{}" or a named value. However, braces, parentheses and brackets tend to look better in quotes, so thos...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
3 results (0.057 seconds)