http://www.perlmonks.org?node_id=571385

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

fellow monks,

$ ls -l foo* -rw-rw-r-- 1 metrica metrica 0 Sep 6 08:02 foo $ perl -pi~ -e '' foo $ ls -l foo* -rw-rw-r-- 1 metrica metrica 0 Sep 6 08:02 foo -rw-rw-r-- 1 metrica metrica 0 Sep 6 08:02 foo~
I am using perl version 5.
$ perl -pi~ -e '' foo
what did the above line do ?
why it has created a file called 'foo~' ?
am I making any mistakes there ?

"Keep pouring your ideas"