The question mark is a special character in a regular expression meaning "zero or one" and *must* follow a character or character class.
If you want to split on the question mark character you need to escape it so that it no longer has special meaning. Like this: split(/\?/,$testdata); Rob -----Original Message----- From: Darren Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 11:03 AM To: PERL Beginners (E-mail) (E-mail) Subject: join 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]