1 ## name Basic failures.
6 my @right = ('foo'); # array
9 local *main::contract; # pkg prefix on var
11 my ($second, $close); # catch both of these
12 sub pkg::bases {} # pkg prefix on sub
15 #-----------------------------------------------------------------------------
17 ## name Ambiguous word in compound name.
18 ## TODO False negative: Ambiguous words in compound names should be forbidden
25 #-----------------------------------------------------------------------------
32 print $main::contract;
33 my %hash = (left => 1, center => 'right');
35 local $\; # for Devel::Cover; an example of a var declaration without \w
37 #-----------------------------------------------------------------------------
39 ## name Ambiguous name on rhs.
40 ## TODO False positive: Need to distinguish rhs in variable statements
46 #-----------------------------------------------------------------------------
48 ## name Ambiguous, but exempt by convention
55 #-----------------------------------------------------------------------------
57 ## name Custom null configuration
58 ## parms { forbid => q{} }
66 #-----------------------------------------------------------------------------
68 ## name Custom configuration: "foo bar baz quux"
69 ## parms { forbid => 'foo bar baz quux' }
78 #-----------------------------------------------------------------------------
80 ## name Custom configuration: "foo bar baz quux"
81 ## parms { forbid => 'foo bar left close' }
90 #%config = ( forbid => join q{ }, qw(foo bar baz quux), @default );
92 #-----------------------------------------------------------------------------
94 ## name Custom null configuration
95 ## parms { forbid => undef }
102 #-----------------------------------------------------------------------------
105 # cperl-indent-level: 4
107 # indent-tabs-mode: nil
108 # c-indentation-style: bsd
110 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :