Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sending an email to a perl script

by grinder (Bishop)
on Nov 16, 2006 at 17:37 UTC ( #584531=note: print w/ replies, xml ) Need Help??


in reply to sending an email to a perl script

I don't think it has anything to do with buffering. I would say that the code is failing to open the file, but it doesn't tell you why, since the code doesn't print $! in the event of an error. (I don't know if you are paraphrasing the code, and omitting the error check).

Another possibility is that something in the while is calling exit, or dying. Again, without seeing the code, it's difficult to know. Can you strip the program down to a bare minimum, for instance, the while loop just counts the number of lines, and print that to the logfile.

A final possibility is that you are opening the output file for create, not append. Maybe the subsequent run trashes the file each time.

• another intruder with the mooring in the heart of the Perl


Comment on Re: sending an email to a perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://584531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-17 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (99 votes), past polls