Append a string to a file in Perl in one-line fashion
Want to append a string to a file in Perl one-line fashion. DOS Shell, we can do
echo This is a test >> test.txt
In Perl, can it be achived? I know that open a file with option ">>..." in Perl. Appending can be done. How about commad-line fashion?