On Wed, Jul 19, 2006 at 12:29:04AM +0200, ende wrote: > Why? > > $a = "1 2 3"; > 1 2 3 > split / /, $a; > [1, "", 2, 3] > split " ", $a; > [1, 2, 3]
Splitting on / / is different from splitting on " " because " " is magickal. While this is mentioned in the docs for split(), it could perhaps be written somewhat better. -- David Cantrell | Enforcer, South London Linguistic Massive Are you feeling bored? depressed? slowed down? Evil Scientists may be manipulating the speed of light in your vicinity. Buy our patented instructional video to find out how, and maybe YOU can stop THEM