Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2002 08:56:47 +0700
From:      "ekoz" <ekoz@melsa.net.id>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   perl question
Message-ID:  <001c01c1cee9$54b626d0$d4e18aca@melsa.net.id>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C1CF24.00AE9BE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,

I have a little problem with perl. I try to delete a few line in a file =
with perl. I have a following line :

cs
cs.tpkkoja

I use "s/\bcs\b/ /;" to deleting the word "cs" and i don't want to =
deleting  "cs.tpkkoja" but, i get this result :

     .tpkkoja
all the word "cs" is deleted include in "cs.tpkkoja".
Any Suggestions ?

________________________________
 Eko Suwarsono
 ekoz@melsa.net.id

------=_NextPart_000_0019_01C1CF24.00AE9BE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a little problem with perl. I =
try to delete=20
a few line in a file with perl. I have a following&nbsp;line =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>cs.tpkkoja</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I use "s/\bcs\b/ /;" to&nbsp;deleting =
the word "cs"=20
and i don't want to deleting&nbsp; "cs.tpkkoja"&nbsp;but, i get this =
result=20
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; =
.tpkkoja</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>all the word "cs" is deleted include in =

"cs.tpkkoja".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any Suggestions ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>________________________________<BR>&nbsp;Eko=20
Suwarsono<BR>&nbsp;<A=20
href=3D"mailto:ekoz@melsa.net.id">ekoz@melsa.net.id</A></FONT></DIV></BOD=
Y></HTML>

------=_NextPart_000_0019_01C1CF24.00AE9BE0--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c1cee9$54b626d0$d4e18aca>