From owner-freebsd-questions Mon Mar 18 18: 0: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.melsa.net.id (mx2.melsa.net.id [202.138.224.13]) by hub.freebsd.org (Postfix) with ESMTP id 9BADD37B498 for ; Mon, 18 Mar 2002 17:58:26 -0800 (PST) Received: from ns2.melsa.net.id (ns2.melsa.net.id [202.138.224.4]) by mx2.melsa.net.id (8.11.3/8.11.3) with ESMTP id g2J1wFf85803 for ; Tue, 19 Mar 2002 08:58:15 +0700 (JAVT) Received: from tech04 (tech04.melsa.net.id [202.138.225.212]) by ns2.melsa.net.id (8.11.3/8.11.3) with SMTP id g2J1wFg60695 for ; Tue, 19 Mar 2002 08:58:15 +0700 (JAVT) Message-ID: <001c01c1cee9$54b626d0$d4e18aca@melsa.net.id> From: "ekoz" To: Subject: perl question Date: Tue, 19 Mar 2002 08:56:47 +0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C1CF24.00AE9BE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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
Hi All,
 
I have a little problem with perl. I = try to delete=20 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"=20 and i don't want to deleting  "cs.tpkkoja" but, i get this = result=20 :
 
     = .tpkkoja
all the word "cs" is deleted include in = "cs.tpkkoja".
Any Suggestions ?
 
________________________________
 Eko=20 Suwarsono
 ekoz@melsa.net.id
------=_NextPart_000_0019_01C1CF24.00AE9BE0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message