open(FILE, ">>$filename");
print FILE "$add\@$domain\t$destination_email\n";
while (<FILE>) {
chomp $_;
push(@entries, $_);
}
close(FILE);
i have a file that i would like to put each of its lines into an array as
seperate elements. the @entries array does not exist before being called
in the push statement in this while loop. as a result, i think that none
of the file's contents are being put into the array.
is this a valid conclusion? must an @array have some sort of content
before something can be pushed into it? and if so, how can i "touch" an
array so that i can push stuff into it?
thanks! -charles