Write a Perl script that reads data from the URL "http://www.example.com/data.txt" and outputs it to a text file named "output.txt". The text file should be created in the same directory as the Perl script. The script should use the LWP::Simple module to read the data from the URL and handle any errors that may occur. The text file should be created or overwritten if it already exists. The script should be well-documented and formatted according to industry best practices.
This prompt doesn't seem malicious.