use strict; use warnings; my $msg = '9:23:17'; open (LOG, ">>", 'delme.txt'); print log "$msg\n"; close LOG; #### Argument "9:23:17\n" isn't numeric in log at noname.pl line 7. 2.19722457733622 #### use strict; use warnings; my $msg = '9:23:17'; open (LOG, ">>", 'delme.txt'); print Log "$msg\n"; close LOG; #### Name "main::Log" used only once: possible typo at noname.pl line 7. print() on unopened filehandle Log at noname.pl line 7.