in reply to Re: Re: Re: Recursion troubles.
in thread Recursion troubles.

The initialisation is incorrect:
push @ranges, {type=>'LIST', last=>,0, values=>\@list };
should be something like:
push @ranges, {type=>'LIST', last=>scalar(@list), values=>\@list };

rdfield