Programming SVG with Perl

Perl is a mutithreading, high-level programming language influenced by C and the unix shells. Perl's process, file, and text manipulation facilities make it particularly well-suited for tasks involving quick prototyping, software tools, database access, graphical programming, networking, and world wide web programming. Perl is available on a large number of platforms, and powerful cross-platform Perl applications are easily constructed

These strengths make it especially popular with system administrators and CGI script authors, but it is highly used by mathematicians, geneticists, GUI programmers, and large-system web application developers.

Perl enjoys extensive SVG support including image generation, parsing, rasterising, UML processing, and webserver integration. In this discussion we will focus on the base SVG module, which is being increasingly used by other modules.

The Perl SVG module is a pure-Perl module which generates a searchable nested data structure containing the DOM representation of an SVG (Scalable Vector Graphics) image. Using SVG, you can generate SVG objects, embed other SVG instances into it, access the DOM object, create and access javascript, and generate SMIL animation content.

We will learn how to install the Perl SVG and SVG::Parser modules and use them to create and modify SVG drawings using SVG and Perl on the server, working will work through real examples to demonstrate the following: