in reply to advice about animated gif.
to help you catch misnamed variables.use strict; use warnings;
But the main thing that's going to help you clarify this script is a subroutine or 2.
It looks like you're doing the same work several times, just changing the angle.
Why not wrap that repeated work into a subroutine that takes the angle as an argument and returns the result of $gif->animend?
Then, your mainline will look much simpler:
$data.=buildCircle(0); $data.=buildCircle($pi/6); # ....
|
|---|