24 #-----------------------------------------------------------------------------
36 #-----------------------------------------------------------------------------
38 ## name Complex failures
42 $arr_ref->[$#{$arr_ref}-1];
43 $arr_ref->[$#$arr_ref-1];
44 $arr_ref->[@{$arr_ref}-1];
45 $arr_ref->[@$arr_ref-1];
46 $$arr_ref[$#{$arr_ref}-1];
47 $$arr_ref[$#$arr_ref-1];
48 $$arr_ref[@{$arr_ref}-1];
49 $$arr_ref[@$arr_ref-1];
51 #-----------------------------------------------------------------------------
53 ## name Really hard failures that we can't detect yet
57 # These ones are too hard to detect for now; FIXME??
58 $some->{complicated}->[$data_structure]->[$#{$some->{complicated}->[$data_structure]} -1];
59 my $ref = $some->{complicated}->[$data_structure];
60 $some->{complicated}->[$data_structure]->[$#{$ref} -1];
61 $ref->[$#{$some->{complicated}->[$data_structure]} -1];
63 #-----------------------------------------------------------------------------
65 ##############################################################################
66 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/Variables/RequireNegativeIndices.run $
67 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
68 # $Author: clonezone $
70 ##############################################################################
74 # cperl-indent-level: 4
76 # indent-tabs-mode: nil
77 # c-indentation-style: bsd
79 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :