in reply to Reading from a file on a NT server
Also bear in mind that you are slurping the entire file into an array which will be ok for small files but might present a memory problem if the files you are reading get larger. I would probably do something like this:open(DAT, $fileName) || die "Could not open $fileName - $!\n";
-- vek --open(DAT, $fileName) || die "Could not open $fileName - $!\n"; while (<DAT>) { print $_, "\n"; } close(DAT);
|
|---|