laziness, impatience, and hubris | |
PerlMonks |
Re: Mail script is cutting out data.by rattusillegitimus (Friar) |
on Jul 08, 2002 at 16:47 UTC ( [id://180226]=note: print w/replies, xml ) | Need Help?? |
Not sure if this will help anything, but you might want to move the line: open(FIL,">>$myfil") || "Can't open $myfil: $! \n";up outside the foreach loop. I noticed you're opening the file multiple times but only closing it once. Similarly, I'd close the FIL filehandle before using the system command to pile the file to mailx. Have you commented out the line that removed the file and checked to make sure all the appropriate lines appear there? That way you could determine if your loop is at fault or the call to mailx. He seemed like such a nice guy to his neighbors /
Kept to himself and never bothered them with favors
In Section
Seekers of Perl Wisdom
|
|