Hi there ...

I have a problem with tr! ...

array = ['b', 'c', 'd']
for i in array 
    i.tr!("b", "X")
    print i, "\s"
end

the above example would replace the "b" with an "X",
but how can I use a Regexp like

tr!(/b-y/, /a-z/)

But this doesn't work and I get an error message.

In perl it woul look like that...

@array = ('b','c','d');

foreach $i (@array) { 
    $i =~ tr/b-y/a-z/;
    print "$i ";
}

Comments?

-- 
with friendly regards....
 	jens luedicke <jens / irs-net.com>
 
 PMC - Perl Mail Client
     http://www.irs-net.com/
     wget it: wget -m -nH ftp://ftp.irs-net.com/pmc 
 
 >> President BU-ll-SH-it ...
 --
 If's Beste Freundin: Else