On Mon, 17 Mar 2003 12:30:02 -0500, [EMAIL PROTECTED]
(Andrew Hughes) wrote:

>submit the file gets read into memory.  If I open the file as open
>(DELETEFILE, ">>" . etc., the list gets overwritten entirely with nothing.

>If I open the file as open (DELETEFILE, "" . etc, the info gets stored into
>memory because I can print it out using print @emailfile which gives me the
>entire file.  Then, when I try to print back to the file, it is the entire

The first thing I always do is change the syntax to it's simplest
"known-to-work" style and then work from there. I would try
taking the concantation out of the open statement to eliminate
that possibility. Like:


>sub deleteFromSubscribeList {
my $outfile = $mailingListPath . $mailingListName;
>open (DELETEFILE, ">>" . $mailingListPath . $mailingListName) or die "cannot
>open file for appending: $!"; 
open (DELETEFILE, ">> $outfile") or die $!;

>flock (DELETEFILE, 2) or die "cannot lock file exclusively: $!";
>
>my @emailfile = <DELETEFILE>;  #


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to