I got burned by this a couple of months ago. The first argument to split, with one exception, is a regular expression, whether it looks like one or not. And '|' has a special meaning in regular expressions. Change ($pointer, $id, $title) = split("||"); to ($pointer, $id, $title) = split "\|\|"; and you'll get better results.
In reply to Re: Wierd funky problems with split
by dws
in thread Wierd funky problems with split
by toonski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |