I need to escape the + because it is getting used as an operator instead of a literal string, this is what I have so far:
$terms[$i] =~ s/\+ /\ \\\+/g;
Basically the result of searching for c++ should return results containing that string.
The error I'm getting is this:
DBD::mysql::st execute failed: Got error 'repetition-operator operand invalid' from regexp
Any ideas?
Cheers,
G :)
_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>