which is the best method *in speed* to open and read a text file.
1. open(FILE); @file=<FILE>; close(FILE) # then work on @file
2. open(FILE); while (<FILE>) { #do whatever...
1. open(FILE); @file=<FILE>; close(FILE) # then work on @file
2. open(FILE); while (<FILE>) { #do whatever...