...
Code Block | ||||
---|---|---|---|---|
| ||||
my $data = 'Tom$Dick$Harry'; my @names = split( m/\$/, $data); |
Exceptions
STR31-PL-EX0: A string literal may be passed to a function if it normally takes a regex pattern but provides special behavior for that string. For example, the perlfunc manpage [Wall 2011] says, regarding PATTERN
, the first argument to split()
:
...
...