in my actual code
open (FD,">>OTAPA_Errors"); foreach my $num (@errors) { if ($flag == 1) { print FD $/,$num; } if ($flag ==0) { print FD $num; $flag = 1; } }
If I run this sometimes a new line is added at the starting. So i removed new line by using flag. But some times the new line missing.
In reply to Re^2: Problem with appending files
by ravi45722
in thread Problem with appending files
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |