13 $x->y(\%foo, *bar)->z($baz, $qux);
17 $x->y(@foo)->z(@bar)->w(%baz);
18 $x->y(\%foo, *bar)->z($baz, $qux)->w(\@xyzzy, $plugh);
20 #-----------------------------------------------------------------------------
27 $x->y()->z()->w()->u();
28 $x->y(@foo)->z(@bar)->w(%baz)->u($qux);
29 $x->y(\%foo, *bar)->z($baz, $qux)->w(\@xyzzy, $plugh)->u(@joe, @blow);
31 #-----------------------------------------------------------------------------
33 ## name Reduced maximum chain length
35 ## parms { max_chain_length => 2 }
40 $x->y(@foo)->z(@bar)->w(%baz);
41 $x->y(\%foo, *bar)->z($baz, $qux)->w(\@xyzzy, $plugh);
43 #-----------------------------------------------------------------------------
45 ## name Increased maximum chain length
47 ## parms { max_chain_length => 4 }
51 $x->y()->z()->w()->u();
52 $x->y(@foo)->z(@bar)->w(%baz)->u($qux);
53 $x->y(\%foo, *bar)->z($baz, $qux)->w(\@xyzzy, $plugh)->u(@joe, @blow);
55 #-----------------------------------------------------------------------------
57 ## name Ignore array and hash ref chains
61 $blargh = $x->{y}->{z}->{w}->{u};
62 $blargh = $x->[1]->[2]->[3]->[4];
63 $blargh = $x->{y}->[2]->{w}->[4];
64 $blargh = $x->[1]->{z}->[3]->{u};
66 #-----------------------------------------------------------------------------
72 $c->response->content_type( 'text/html; charset=utf-8' )
73 unless $c->response->content_type;
76 ##############################################################################
77 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/ValuesAndExpressions/ProhibitLongChainsOfMethodCalls.run $
78 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
79 # $Author: clonezone $
81 ##############################################################################
85 # cperl-indent-level: 4
87 # indent-tabs-mode: nil
88 # c-indentation-style: bsd
90 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :