-<%
+[ <% join(', ', map { qq("$_") } @output) %> ]
+<%init>
- my $country = $cgi->param('arg');
- my @output = states_hash($country);
+my $country = $cgi->param('arg');
+my @output = states_hash($country);
-%>[ <%= join(', ', map { qq("$_") } @output) %> ]
+</%init>