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

Perl::Critic::Policy::ValuesAndExpressions::ProhibitEscapedCharacters - Write "\N{DELETE}" instead of "\x7F", etc. River stage three • 131 direct dependents • 386 total dependents

Escaped numeric values are hard to read and debug. Instead, use named values. The syntax is less compact, but dramatically more readable. $str = "\x7F\x06\x22Z"; # not ok use charnames ':full'; $str = "\N{DELETE}\N{ACKNOWLEDGE}\N{CANCEL}Z"; # ok...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC
1 result (0.068 seconds)