How I can avoid that .
Open the file in >> append mode:
c:\@Work\Perl\junque>perl -wMstrict -e "my $file = 'junk'; for my $s (qw(foo bar baz)) { open my $fh, '>>', $file or die qq{opening '$file': $!}; print $fh qq{this is $s \n} or die qq{writing '$file': $!}; close $fh or die qq{closing '$file': $!}; } " c:\@Work\Perl\junque>cat junk this is foo this is bar this is baz
In reply to Re: using the system command
by AnomalousMonk
in thread using the system command
by viktor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |