5 @list = ('foo', 'bar', 'baz');
11 #-----------------------------------------------------------------------------
20 @list = ('foo', 'bar', 'bee baz');
21 @list = ('foo', 'bar', q{bee baz});
22 @list = ('foo', 'bar', q{});
23 @list = ('foo', 'bar', 1.0);
24 @list = ('foo', 'bar', 'foo'.'bar');
25 @list = ('foo, 'bar'); # XXX is this a typo? What is this trying to test?
26 @list = ($foo, 'bar', 'baz');
27 @list = (foo => 'bar');
28 %hash = ('foo' => 'bar', 'fo' => 'fum');
29 my_function('foo', 'bar', 'fudge');
30 $a_function->('foo', 'bar', 'fudge');
31 foreach ('foo', 'bar', 'nuts'){ do_something($_) }
33 #-----------------------------------------------------------------------------
35 ## name Three elements with minimum set to four
37 ## parms {min_elements => 4}
40 @list = ('foo', 'bar, 'baz');
42 #-----------------------------------------------------------------------------
44 ## name Four elements with minimum set to four
46 ## parms {min_elements => 4}
49 @list = ('foo', 'bar', 'baz', 'nuts');
51 #-----------------------------------------------------------------------------
53 ##############################################################################
54 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/CodeLayout/ProhibitQuotedWordLists.run $
55 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
56 # $Author: clonezone $
58 ##############################################################################
62 # cperl-indent-level: 4
64 # indent-tabs-mode: nil
65 # c-indentation-style: bsd
67 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :