RE: missing the boat on s///

2002-08-28 Thread Kipp, James
what are you trying to do ? > -Original Message- > From: Jerry Preston [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 28, 2002 12:05 PM > To: Beginners CGI Perl > Subject: missing the boat on s/// > > > Hi!, > > I know this is simple, but what am I

Re: missing the boat on s///

2002-08-28 Thread Mo Holkar / UKG
At 17:04 28/08/02, Jerry wrote: >$_ = "Who is missing the boat"; >$j = "Jerry"; >$w = "Who"; >$_ = s/$w/$j/; If you want the output 'Jerry is missing the boat' then you need the =~ operator rather than just = ie. $_ =~ s/$w/$j/; Mo Mo Holkar Undying King Games [EMAIL PROTECTED] Free ga

Re: missing the boat on s///

2002-08-28 Thread John Pitchko
$_ =~ s/$w/$i/; John Pitchko Data Services Saskatchewan Government Insurance >>> "Jerry Preston" <[EMAIL PROTECTED]> 08/28/02 10:04am >>> Hi!, I know this is simple, but what am I doing wrong? $_ = "Who is missing the boat"; $j = "Jerry"; $w = "Who"; $_ = s/$w/$j/; Thanks, Jerry

missing the boat on s///

2002-08-28 Thread Jerry Preston
Hi!, I know this is simple, but what am I doing wrong? $_ = "Who is missing the boat"; $j = "Jerry"; $w = "Who"; $_ = s/$w/$j/; Thanks, Jerry