
thebitch
User
Sep 4, 2002, 9:50 PM
Post #2 of 2
(505 views)
|
|
Re: [ZD] SPLIT | delimited text
[In reply to]
|
Can't Post
|
|
the "split" function requires a regexp pattern on which to spilit on split '|', 'Troy|Mary|Tim' will not split on |, because | is a metacharacter, and has special meaning in regular expressions you'll be wanting to escape it, as in split /\|/, 'Troy|Mary' you'll be wanting to read perldoc perlre as well as perldoc perlop cause you could also say split /\Qany old character[][][][]][\E/, $word and that would split on the literal string any old character[][][][]][ even though [] is a metacharacter you also wanna read perldoc -f quotemeta
|