good chemistry is complicated,
and a little bit messy -LW
sending an email to a perl scriptby davidj (Priest)
|on Nov 16, 2006 at 17:01 UTC||Need Help??|
davidj has asked for the
wisdom of the Perl Monks concerning the following question:
I have a situation at work in which managements desired solution is an email, .forward, and a perl script. Basically, it needs to process the email content, do some db stuff, and log some stuff.
As this is the first time I've done something like this, there's one thing in particular I do not understand. When I do this:
The file does not get opened and written to.
However, when I do this:
the file does get opened and written to.
My guess is that it has to do with I/O and buffering. The only thing I could think of was to set $|=1; , but that didn't work. I could do it the second way, since its pretty trivial, but I would really like to know how to do it the first way.
As always, thanks for your wisdom