Thank you!!

-----Original Message-----
From: John W. Krahn [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:34 AM
To: [EMAIL PROTECTED]
Subject: Re: remove a char


Michael Gargiullo wrote:
>
> In an array say @randomWord
>
> The second position could contain one of a thousand words, but the words
all
> end with a comma.  How can I strip that comma?
>
> I've tried using:
>
> $_=$randomWord[1];
> /(.*.),/;
> $randomWord[1] = $_;
>
> But this is not working, any sugestions?


$randomWord[1] =~ tr/,//d;


John
--
use Perl;
program
fulfillment

--
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]

Reply via email to