From: Jens Luedicke Date: 2001-01-05T22:17:01+09:00 Subject: [ruby-talk:8679] tr_s! 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 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