Hi, I need to pass a perl array, converted to a string list, to a block of JavaScript in a TT Template, to create a JavaScript array
If I use $string_to_feed_javascript = join (", ", @perl_array);$string_to_feed_javascript contains all items separated by commas, but this breaks JavaScript syntax because each alphanumeric value must be enclosed by quotes./p>
So How can I convert the array to a string this way?
Thank you in advance
In reply to Array to list with quoted items by miguelele
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |