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]

Reply via email to