On Mon, Aug 27, 2001 at 05:12:53PM +0100, Stray Toaster wrote: > my $next = $id + 4; > $next = 1 if ($next > @pics); > my $pic = $id ? $id : 1; > $pic = 1 if ($pic > @pics); > my $last_pic = $pic + 3; I really hate this bit of logic. I haven't a clue from looking at it what it does... and there are far too many magic numbers. Tony