Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 845e615302d98f72a3d7a294315cbd88 > files > 15

perl-SVG-2.590.0-4.mga5.noarch.rpm

#!/usr/bin/perl

use strict;
use warnings;

use SVG;

# create an SVG object with a size of 40x40 pixels
my $svg = SVG->new(
    width  => 40,
    height => 40,
);

# add a circle
$svg->circle(
    cx => 20,
    cy => 20,
    r  => 18,
);


# now render the SVG object, implicitly use svg namespace
print $svg->xmlify, "\n";