Question : perl write to file
Answered by : fantomx1
open(my $fh, '>', 'report.txt');
print $fh "My first report generated by perl\n";
close $fh;
# no package/library needed/dependant
Source : https://perlmaven.com/writing-to-files-with-perl | Last Update : Tue, 16 Feb 21