in reply to Wierd funky problems with split
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Wierd funky problems with split
by pg (Canon) on Jan 02, 2003 at 04:44 UTC | |
|
Re: Re: Wierd funky problems with split
by jdporter (Paladin) on Jan 02, 2003 at 03:50 UTC |