M
Madhur
Hello
The following code snippet, shots the memory usage to full and
results in Out of Memory error.
The substitution seems to be the culprit. But why it happens. I
am running W2K, Perl 5.6.
@input=<MYFILE>;
$i=0;
while($i<=@input)
{
$input[$i]=~s/^[0-9]+://;
print("$input[$i]");
$i++;
}
close(MYFILE);
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
email : madhur<underscore>ahuja<at>yahoo<dot>com
The following code snippet, shots the memory usage to full and
results in Out of Memory error.
The substitution seems to be the culprit. But why it happens. I
am running W2K, Perl 5.6.
@input=<MYFILE>;
$i=0;
while($i<=@input)
{
$input[$i]=~s/^[0-9]+://;
print("$input[$i]");
$i++;
}
close(MYFILE);
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
email : madhur<underscore>ahuja<at>yahoo<dot>com