mason style
authorivan <ivan>
Sat, 22 Aug 2009 00:31:04 +0000 (00:31 +0000)
committerivan <ivan>
Sat, 22 Aug 2009 00:31:04 +0000 (00:31 +0000)
httemplate/misc/states.cgi

index cf2b46e..02b7be4 100644 (file)
@@ -1,7 +1,7 @@
-%
-%
-%  my $country = $cgi->param('arg');
-%  my @output = states_hash($country);
-%
-%
 [ <% join(', ', map { qq("$_") } @output) %> ]
+<%init>
+
+my $country = $cgi->param('arg');
+my @output = states_hash($country);
+
+</%init>