perl -ple"$_ .= 'world'" file [download]
In reply to Re^2: How to write a program to read stdin or command line? by ikegami in thread How to write a program to read stdin or command line? by princepawn