in reply to Re: Tie::File problem
in thread Tie::File problem

Ok, so it is definitely using less memory. So in order to get the complete benefits of this module, I should use it as a stack. That way it is only keeping track of the first few elements.

Thankfully, that is an option, so I'll give it a try.

Thanx chiefs

follow up:
It worked great :) This snippet doesn't chew hardly any memory. Thanx again.

#!/usr/bin/perl use Tie::File; my @item; my $dbuncheck = tie (@item,'Tie::File','test',memory => '100000') or d +ie $!; for (1..30000) { unshift @item,'stuff' x 40; }