Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Mail script is cutting out data.

by rattusillegitimus (Friar)
on Jul 08, 2002 at 16:47 UTC ( #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
Node Status?
node history
Node Type: note [id://180226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-03-02 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (40 votes). Check out past polls.

    Notices?