I finally figured out how to append text to the end of each line in a file:
perl -pe \'s/$/addthis/\' myfile.txt
However, as I\'m trying to
A workaround :
perl -pe 's/\n/addthis\n/'
no need g modifier : the regex is treated line by lines.
g