5 for $element1 ( @list1 ) {
6 foreach $element2 ( @list2 ) {
7 for $element3 ( @list3 ) {
8 foreach $element4 ( @list4 ) {
9 for $element5 ( @list5 ) {
10 for $element6 ( @list6 ) {
18 #-----------------------------------------------------------------------------
37 #-----------------------------------------------------------------------------
39 ## name 6 if blocks, not nested
51 #-----------------------------------------------------------------------------
53 ## name 6 for loops, not nested
57 for $element1 ( @list1 ) {
58 foreach $element2 ( @list2 ) {}
59 for $element3 ( @list3 ) {}
60 foreach $element4 ( @list4 ) {}
61 for $element5 ( @list5 ) {}
62 foreach $element6 ( @list6 ) {}
65 #-----------------------------------------------------------------------------
74 for (my $i=0; $<10; $i++) {
84 is( pcritique($policy, \$code), 1, '');
86 #-----------------------------------------------------------------------------
90 ## parms {max_nests => 6}
96 for (my $i=0; $<10; $i++) {
106 #-----------------------------------------------------------------------------
108 ## name With postfixes
113 s/foo/bar/ for @list;
115 for (my $i=0; $<10; $i++) {
123 #-----------------------------------------------------------------------------
125 ##############################################################################
126 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/ControlStructures/ProhibitDeepNests.run $
127 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
128 # $Author: clonezone $
130 ##############################################################################
134 # cperl-indent-level: 4
136 # indent-tabs-mode: nil
137 # c-indentation-style: bsd
139 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :