in reply to why does this array take up so much memory?

Uhm... Which version of Perl are you using?

I know almost nothing (or less) about Perl internals, but I remember that in old releases the construct (0..4000) wasn't optimized and effectively created a 4001-element list. Could it be your case?

Ciao!
--bronto

# Another Perl edition of a song:
# The End, by The Beatles
END {
  $you->take($love) eq $you->make($love) ;
}

Replies are listed 'Best First'.
Re: Re: why does this array take up so much memory?
by IlyaM (Parson) on Jan 27, 2003 at 10:49 UTC