in reply to Perl deleted my desktop

Accept my condolences.

Keep backups of everything important. All development should take place in a version control system, and you should run any script on testing data first.

It might sound pedantic and tedious, but after accidents like yours, it all starts to make sense.

Also, don't blame Perl. It was you who deleted the desktop, not Perl ;-)

I've deleted lots of photographs, videos, and whole directories of files accidentally. Some of them were lost forever, some of them were recovered from backup copies. When touching anything of importance, I always switch the mode "production environment" on.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Perl deleted my desktop
by harangzsolt33 (Deacon) on Nov 03, 2019 at 21:07 UTC
    Yes, I know... it was I. And I’ve learned my lesson. Sigh.