use strict; use Template; my $json = '[[1,13],[2,25],[3,17],[4,3],[5,10]]'; # or use JSON.pm use CGI ':standard'; use CGI::Carp(fatalsToBrowser); print "Content-type: text/html\n\n"; my $tmpl = Template->new(); $template->process('/home/hermit23/mysite/mytemplate.tt', { json => $json, }); ####