in reply to quote a \
split /\\/, ...
If you use a string literal, you need to take into account that the resulting string will be treated as regexp. That means you need to escape the slash to form the right string, then escape the slash again to form the right regexp.
split "\\\\", ...
In short, don't use a string as the first argument of split :)
|
|---|