in reply to Re: Multiple replacements with the exception of previously made replacements.
in thread Multiple replacements with the exception of previously made replacements.

How about this:
  1. Create a hash which describes the transformations (i.e. $translate{'are'}='am' etc.)
  2. Use split to split your sentence into words.
  3. Use map to apply the translation of the words, using your %translate hash.
  4. Use join to put back the words into a sentence

-- 
Ronald Fischer <ynnor@mm.st>