Text mining and text variation analysis with perl