Output from perl to file.txt

Hi all,

Recently I wrote a script which will calculate composition of atoms in unit cell and generate defined LJ parameters for each atom. However, what I do not know is how to save a content of the Perl Output to a chosen file, without just Copy/Paste. I need that because I will have a large number of files and it can be a bit hard work to do it manualy.

Does anyone know how to solve this?

Thank you for your time!

Regards,

Bojan