The first argument to split() is always a regular expression
Has this always been true? I remember a time long ago when I tried to use split "\n", "foo\nbar"; and got an error stating that using double quotes to split on a newline was wrong and that split /\n/, "foo\nbar"; should be used. I just tried a one-liner with warnings and strict enabled and did not get that same warning/error. Would you know why using double quotes used to give funny results?
In reply to Re^3: split trying to look for /
by Coruscate
in thread split trying to look for /
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |