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) {
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],[EMAIL PROTECTED]);
chomp($newline);
print DAT "$newline\n";
$count++;
}
but I can not retrieve the data into $newline with join. Is this bit wrong
$member_array[$count],[EMAIL PROTECTED])
or am I missing the point completely or is there another way of doing it.
I am currently loading direct from the file working on that line and them loading back to file, but I can only change one line at a time. Doing it with as above I can alter the entire array and then load back to file.
Any help is appreciated and please excuse if I'm in the wrong forum.
Cheers
Colin
-----------------------------------------------------------------------------------------------
The ultimate in that holiday spot away from the maddening crowd
Join as a member today its FREE
List your holiday accommodation for FREE
------------------------------------------------------------------------------------------------
Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.211 / Virus Database: 261.8.1 - Release Date: 30/01/2004
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>