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 :)
In reply to Re: quote a \
by ikegami
in thread quote a \
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |