the ? is a special character within a regular expression (which is what the two /s inside split contain). If you want to split on the ?, you'll have to escape it, like \?
Have a look at perldoc perlre for what regular expressions are about. deen On Thu, 31 Jan 2002, Darren Simpson wrote: > hi. i keep getting wierd errors when i try to split a string. the string > is > > split(/?/,$testdata); > > the error i get is > > /?/: ?+* follows nothing in regexp > > what does it mean > > Thanks > > > -- Deen Hameedd, Accidental Programmer [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]