peterchan75
Supremacy Member
- Joined
- Apr 26, 2003
- Messages
- 6,754
- Reaction score
- 533
Hi perl experts,
These 2 approaches..
1. Read entire file into an array at one go. E.g. @array = <inputfile>; Process the data from array.
2. Read the data from file line by line. E.g. $read_line = <inputfile>; Process the data while reading.
What I notice is that the former method is faster. Is my observation correct ?
Thanks in advance.
These 2 approaches..
1. Read entire file into an array at one go. E.g. @array = <inputfile>; Process the data from array.
2. Read the data from file line by line. E.g. $read_line = <inputfile>; Process the data while reading.
What I notice is that the former method is faster. Is my observation correct ?
Thanks in advance.
