1Perl::Critic::Policy::TUiscesr::CPornPotehrriilbb:iu:ttCMeradintyPiAecrr:rl:oPwDosol(ci3uc)mye:n:tTaitciso:n:ProhibitManyArrows(3)
2
3
4
6 Perl::Critic::Policy::Tics::ProhibitManyArrows - (this => is => not =>
7 good)
8
10 version 0.009
11
13 You are not clever if you do this:
14
15 my %hash = (key1=>value1=>key2=>value2=>key3=>'value3');
16
17 You are even more not clever if you do this:
18
19 my %hash = (key1=>value1=>key2=>value2=>key3=>value3=>);
20
22 There is one parameter for this policy, max_allowed, which specifies
23 the maximum number of fat arrows that may appear as item separators.
24 The default is two. If you really hate the fat arrow, and never want
25 to see it, you can set max_allowed to zero and make any occurance of
26 "=>" illegal.
27
28 Here are some examples of code that would fail with various max_allowed
29 values:
30
31 max_allowed failing code
32 0 (foo => bar)
33 1 (foo => bar => baz)
34 2 (foo => bar => baz => quux)
35
37 Ricardo SIGNES <rjbs@cpan.org>
38
40 This software is copyright (c) 2007 by Ricardo SIGNES.
41
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.32.0 Perl:2:0C2r0i-t0i7c-:2:8Policy::Tics::ProhibitManyArrows(3)