From: jason corbett <[EMAIL PROTECTED]>
> Here is the script that I am using. Remember that the script creates
> the file perfectly and stores the file with data in a folder on the
> server. The emailed copy is being sent out blank.
Seems the problem IS in what I said. Try to move the
close(OUTFILE);
before the
mailman();
call. Or even better. If you open the OUTFILE in data_collect() and
write to it only in data_collect, you should as well close it in the
function. Same with ERRORLOG and logresults();
Jenda
P.S.:
mailman(); #call mailman function
??? Such comments do not aide the readability. Just the oposite.
You should only comment the stuff that's not trivial.
P.P.S.: The function logresults() ignores the parameter you pass it.
The function accesses the global variable $success_var instead!
Actually none of your functions take any parameters!
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>