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.32014-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.22012-0Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters(3pm)
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)
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)
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)