$<.map{|l|puts l=='cat'?'cat goes "Meow"':l}
cat dog cat bla
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!