/usr/share/doc/libsvg-perl/examples/minsvg.pl is in libsvg-perl 2.50-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/usr/bin/perl -w
use strict;
BEGIN {
push @INC , '../';
push @INC , '../SVG';
}
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 "Content-type: image/svg+xml\n\n";
print $svg->xmlify(-dtd=>'http://this-is-my-dtd.html.hereIam');
|