in reply to Not printing to file, but print to screen ok
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Not printing to file, but print to screen ok
by almut (Canon) on Mar 17, 2010 at 18:45 UTC |