my $logfile = "/var/log/my.log" my $text = "Log entry text!" open(LOG, ">>$logfile") or die "Could not open file: $!"; print LOG $text; close LOG;
In reply to Re^2: How to modify a file
by static0verdrive
in thread How to modify a file
by biancoari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |