>>>>> "B" == BJ <> writes:
B> We are trying to get a text area from screen and edit it to
B> replace ' with ` (to preent mysql record mark conflict) $title is could be
B> blank initially
B> $title = ~s/'/`/g ;
that is very wrong as the op is =~ with no space. you assigned $title
the negation of the s/// op result which was likely 0 and it inverted it
to all 1's which is the number you got.
B> or even
B> $title =~s\/'/\`/g ;
here you have the op correct but the s\/ is insane. i am not even sure
if that parses.
B> Can anyone suggest a work arround.
fix your op and learn to not put spaces inside perl's ops.
uri
--
Uri Guttman ------
--------
http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ----
http://bestfriendscocoa.com ---------