make your code readable, try this: $line =~ s|\|/|;
perhaps it's not working because you dont have the /s and /g modifiers? /s = read beyond newlines /g = chnage them all, not just the first hth, Jos ----- Original Message ----- From: "RAHUL SHARMA" <[EMAIL PROTECTED]> To: "Konstantin Berman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 11:39 AM Subject: Re: change \ to / > I tried by the same syntax. $line =~ s/\\/\//s; > > It works fine. > > ----- Original Message ----- > From: Konstantin Berman <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 25, 2001 1:54 PM > Subject: change \ to / > > > > Hi. > > All I want is to change \ to / . > > The \ is in the variable $line, so I run the command: > > $line=~s/\\/\//; > > But it doesn't change anything. Can anyone please help? > > > > Thanks in advance. > > > > > > -- > > 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] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]