The problem is I would not any double quote in the middle of the sentence to be removed. For example
$string="\" email title. \" username \""; On Tue, 2 Nov 2004 10:31:22 +0100, Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote: > Khairul Azmi [KA], on Tuesday, November 2, 2004 at 17:15 (+0800) > wrote: > > KA> $string1="\"email title\""; > KA> $string2='email title'; > > if you want string2 equal to string1, you have to remove double > quotes. So, you should try: > > $string1="\"email title\""; > $string2='email title'; > > $string1 =~ s/\"//g; #replace all " with nothing (\\) > > print "s1 = $string1 \n"; > print "s2 = $string2 \n"; > > But I don't know if is exactly do you want. Helped ? > > -- > > ...m8s, cu l8r, Brano. > > [FLR: Flash Lights Randomly] > > -- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>