? is a special charater (a quantifier like * or {6} )
it quantifies to 0 or 1;
it's also a modifier to a quantifier causing it to match the least of the
quantifier.

Just put a \ in front of it

split(/\?/,$testdata);


-----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]

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to