Re: Writing to file

From: R. Joseph Newton (rjnewton_at_efn.org)
Date: 02/02/04


Date: Sun, 01 Feb 2004 19:33:57 -0800
To: Support <support@emlgroup.co.nz>

Support wrote:

> Hi all
> I have a little bit of code you may be able to help with.
> I load a file into an array with
>
> foreach $lines(@database_array) {
> @edit_array = split(/\:/,$lines);
> push(@member_array,\@edit_array);
> $x++;
> } #loop
>
> and then play around with the array a bit, then I would
> like to load it back into the file with
>
> while($count<$x){
> $newline = join('\:',@{$member_array[$count]});
> chomp($newline);
> print DAT "$newline\n";
> $count++;
> }

See if that is closer to what you want.

Joseph