perl write to file code example
Example: perl write to file
open(my $fh, '>', 'report.txt');
print $fh "My first report generated by perl\n";
close $fh;
# no package/library needed/dependant
open(my $fh, '>', 'report.txt');
print $fh "My first report generated by perl\n";
close $fh;
# no package/library needed/dependant