in reply to Re: Wiping Out Values
in thread Wiping Out Values

Or, alternatively, you could merely reset when the number goes down instead of going up. As in:
my $l_level = 0; foreach (@achievement){ my ($level) = /(\d+)$/; @results = () if ($level < $l_level); push (@results,$_); print "Result = @results\n"; $l_level = $level; }