S
Shashidhar Vajramatti
Hello,
As listed below in the snippet of code, I am trying to handle a
file's contents by copying in to a single variable. It works fine for the
files of lesser size( few MegaBytes). But when the size of the file is more
than 16MB, it gives me an error message saying "System out of memory".
But perl doesnot have any limits to the size of the variable. Then, what
can be the reason for this problem?
Following is the code which is used to handle the file contents through a
single variable using regular expressions.
#$file = join '',<IN>;
@file = <IN>;
Error Message: "System Out of Memory"
As listed below in the snippet of code, I am trying to handle a
file's contents by copying in to a single variable. It works fine for the
files of lesser size( few MegaBytes). But when the size of the file is more
than 16MB, it gives me an error message saying "System out of memory".
But perl doesnot have any limits to the size of the variable. Then, what
can be the reason for this problem?
Following is the code which is used to handle the file contents through a
single variable using regular expressions.
#$file = join '',<IN>;
@file = <IN>;
Error Message: "System Out of Memory"