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
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
$_ =~ 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
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