use strict; use warnings; my $list = 'foo'; my $newline = "bar\n"; open FH, '>', "$list.tmp" or die "$list == $!"; print FH $newline or die "Error print: $!"; close FH; print $newline;
In reply to Re: Not printing to file, but print to screen ok
by toolic
in thread Not printing to file, but print to screen ok
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |