- or download this
use strict;
use warnings;
...
var headname<%= $_ + 1 %> = "<%= $vars->[$_] %>";
<% } %>
</script>
- or download this
<script>
...
var headname4 = "qux";
</script>
- or download this
use strict;
use warnings;
...
var headname = <%== "[@$vars]" %>;
alert( headname );
</script>