Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: advice about animated gif.by RMGir (Prior) |
on Dec 24, 2013 at 11:16 UTC ( [id://1068305]=note: print w/replies, xml ) | Need Help?? |
You should definitely start your script with
to help you catch misnamed variables. 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:
Mike
In Section
Seekers of Perl Wisdom
|
|