##> $word =~s/aeiou/-/; but ..... $word =~ s/[aeiou]/-/g; ## will achieve the same thing.
Using s/// for something like tr/a-z/n-za-m/ is a little trickier, though certainly not impossible.
Anyway, is it true that "tr/aeiou/-/" is faster than "s/[aeiou]/-/g" ?.
Find out. The standard Benchmark module will tell you, if you ask nicely. If you have trouble with the code, give us a shout...
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>