I got this odd line of string in my file which I used in for my output of my program. The program I wrote just uses this statement:
sub writetofile {
open(PROFAIL, ">$profail");
print PROFAIL $_[0];
close(PROFAIL);
}
where this sub, named writetofile takes 1 argument and use it as the input string to be written into the file. One last time I ran it, it went through the string exactly in my file, but one time(this time), it show me this line on top of the exact string, where the rest is still ok. This is just like a header of the file, but I haven't done anything like that. All I've just done is just the sub, then the string passed to it is just consisted of a plain user data, like name, password, and so on in line-by-line basis. It went out ok before, but not this time. If you need to see what the inputs are, I can send it to you later.
Thanks.
Tags: