7 split $pattern, $string;
8 split $pattern, $string, 3;
10 # Scalar arg, w/ parens
12 split($pattern), $string;
13 split($pattern), $string, 3;
20 # Regex arg, w/ parens
23 split( // ), $string, 3;
25 $foo{split}; # for Devel::Cover
26 {split}; # for Devel::Cover
28 #-----------------------------------------------------------------------------
36 split 'pattern', $string;
37 split 'pattern', $string, 3;
41 split "pattern", $string;
42 split "pattern", $string, 3;
44 # Single quote, w/ parens
46 split('pattern'), $string;
47 split('pattern'), $string, 3;
49 # Double quote, w/ parens
51 split("pattern"), $string;
52 split("pattern"), $string, 3;
54 #-----------------------------------------------------------------------------
56 ## name Special split on space
62 split ' ', $string, 3;
65 split( " " ), $string;
66 split( " " ), $string, 3;
69 split( q{ } ), $string;
70 split( q{ } ), $string, 3;
72 #-----------------------------------------------------------------------------
74 ## name Split oddities
78 # These might be technically legal, but they are so hard
79 # to understand that they might as well be outlawed.
84 #-----------------------------------------------------------------------------
86 ##############################################################################
87 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/BuiltinFunctions/ProhibitStringySplit.run $
88 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
89 # $Author: clonezone $
91 ##############################################################################
95 # cperl-indent-level: 4
97 # indent-tabs-mode: nil
98 # c-indentation-style: bsd
100 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :