in reply to Graphical program
You don't know how to do what?
If you need to understand SVG then https://www.w3.org/Graphics/SVG/ is a good place to start.
Or if it's just the perl part, there are modules in CPAN for dealing with SVG: see SVG for one.
In Section
Seekers of Perl Wisdom