Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perl::critic::policy::regularexpressions::prohibitunusualdelimit(3) [centos man page]

Perl::Critic::Policy::RegularExpressions::ProhibitUnusuaUseriContributed PerPerl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters(3)

NAME
Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters - Use only "//" or "{}" to delimit regexps. AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Perl lets you delimit regular expressions with almost any character, but most choices are illegible. Compare these equivalent expressions: s/foo/bar/; # good s{foo}{bar}; # good s#foo#bar#; # bad s;foo;bar;; # worse s||||||; # eye-gouging bad CONFIGURATION
There is one option for this policy, "allow_all_brackets". If this is true, then, in addition to allowing "//" and "{}", the other matched pairs of "()", "[]", and "<>" are allowed. CREDITS
Initial development of this policy was supported by a grant from the Perl Foundation. AUTHOR
Chris Dolan <cdolan@cpan.org> COPYRIGHT
Copyright (c) 2007-2011 Chris Dolan. Many rights reserved. 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-Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters(3)

Check Out this Related Man Page

Perl::Critic::Policy::RegularExpressions::ProhibitUnusuaUseriContributed PPerl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters(3pm)

NAME
Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters - Use only "//" or "{}" to delimit regexps. AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Perl lets you delimit regular expressions with almost any character, but most choices are illegible. Compare these equivalent expressions: s/foo/bar/; # good s{foo}{bar}; # good s#foo#bar#; # bad s;foo;bar;; # worse s||||||; # eye-gouging bad CONFIGURATION
There is one option for this policy, "allow_all_brackets". If this is true, then, in addition to allowing "//" and "{}", the other matched pairs of "()", "[]", and "<>" are allowed. CREDITS
Initial development of this policy was supported by a grant from the Perl Foundation. AUTHOR
Chris Dolan <cdolan@cpan.org> COPYRIGHT
Copyright (c) 2007-2011 Chris Dolan. Many rights reserved. 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.14.2 2012-0Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters(3pm)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tagged regular expressions(TRE) in unix

Hi gurus, Can any of you suggest any good link for going through tagged regular expressions for unix.I am finding it quite critical and need some help from all gurus to know this better. Any good link containing detailed examples with descriptions would do i guess. thanks in advance. (0 Replies)
Discussion started by: navojit dutta
0 Replies

2. UNIX for Advanced & Expert Users

Awk expressions working & not working

Hi, Putting across a few awk expressions. Apart from the last, all of them are working. echo a/b/c | awk -F'/b/c$' '{print $1}' a echo a/b/c++ | awk -F'/b/c++' '{print $1}' a echo a/b/c++ | awk -F'/b/c++$' '{print $1}' a/b/c++ Request thoughts on why putting a '$' post double ++... (12 Replies)
Discussion started by: vibhor_agarwali
12 Replies

3. Shell Programming and Scripting

Perl : Perl equivalent to the ksh | and ;

Ive been trying to move to Perl. It has been a struggle. My question is, is there a good resource that explains nesting statements. As an example. To change primary Factory CTS 1.9.0(46) P1 *Slot 1 CTS 1.10.2(42) P1 To primary *Slot 1 CTS 1.10.2(42) P1 ... (5 Replies)
Discussion started by: popeye
5 Replies