Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Mail script is cutting out data.

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
- Jefferson Airplane, "Assassin"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-24 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found