Re: Writing to file
From: R. Joseph Newton (rjnewton_at_efn.org)
Date: 02/02/04
- Next message: R. Joseph Newton: "Re: how to initialize an array of unknown size to 0?"
- Previous message: Robin Sheat: "Re: How can be the return value from a subroutine saved in global array"
- Maybe in reply to: Jeff 'Japhy' Pinyan: "Re: Writing to file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: R. Joseph Newton: "Re: how to initialize an array of unknown size to 0?"
- Previous message: Robin Sheat: "Re: How can be the return value from a subroutine saved in global array"
- Maybe in reply to: Jeff 'Japhy' Pinyan: "Re: Writing to file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|