centos man page for perl::critic::policy::valuesandexpressions::restrictlongstrings

Query: perl::critic::policy::valuesandexpressions::restrictlongstrings

OS: centos

Section: 3

Links: centos man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Perl::Critic::Policy::ValuesAndExpressions::RestrictLongUsernContributed Perl DoPerl::Critic::Policy::ValuesAndExpressions::RestrictLongStrings(3)

NAME
Perl::Critic::Policy::ValuesAndExpressions::RestrictLongStrings - Stop mixing long strings with code.
AFFILIATION
This policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic.
DESCRIPTION
Long text strings in the middle of code is very distracting and wreaks havoc on code formatting. Consider putting long strings in external data files, "__DATA__" sections, or in their own subroutines. This policy complains if a long string is not the last line of a subroutine. "Long" is defined as 78 characters by default. This value can be altered in your Perl::Critic configuration via the "max_length" property. For example, you may add the following to your .perlcriticrc file: [ValuesAndExpressions::RestrictLongStrings] max_length = 50
SEE ALSO
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2008 Chris Dolan This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 2014-06-10 Perl::Critic::Policy::ValuesAndExpressions::RestrictLongStrings(3)
Related Man Pages
perl::critic::policy::variables::protectprivatevars(3) - centos
perl::critic::policy::valuesandexpressions::prohibitimplicitnewl(3) - centos
perl::critic::policy::valuesandexpressions::prohibitspecialliter(3) - centos
perl::critic::policy::valuesandexpressions::prohibitemptyquotes(3pm) - debian
perl::critic::policy::valuesandexpressions::prohibitspecialliter(3pm) - debian
Similar Topics in the Unix Linux Community
Perl-Critic 1.082 (Default branch)
Perl-Critic 1.094001 (Default branch)
Perl: varible-sized arrays?
Help understanding Perl code.
Perl code request