in reply to Re: Saving an array to a disk file
in thread Saving an array to a disk file
Just a quick question because I don't know if perl would optimize that code but... would the join not be a bit onerous if the array is very large? (Also, cleaned up teh code a little.)
Perhaps a foreach loop?
my @array = ('array','stuff','here');
open OUTFILE, '>', 'filename' or die "Couldn't create filename: $!";
print OUTFILE $_,"\n" foreach @array;
Update: D'oh. Cleaned up my comment a little... would help if I could type