Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > c533b31392175c2609210561ff8ebf29 > files > 19

perl-SVG-2.840.0-2.mga7.noarch.rpm

#!/usr/bin/perl

use strict;
use warnings;

use SVG;

# create an SVG object
my $svg = SVG->new(
    width  => 100,
    height => 100,
);
$svg->pi('we are surround you', 'surrender all your bases');
$svg->comment('I am a comment', 'and another comment');
$svg->circle(
    cx => 100,
    cy => 100,
    r  => 50,
    id => 'circle_in_group_y',
);

# now render the SVG object, implicitly use svg namespace
print $svg->xmlify(-dtd=>'http://this-is-my-dtd.html.hereIam');