Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Loop function in Javascript fails when combined with perl array

by jeffa (Bishop)
on Aug 26, 2015 at 22:50 UTC ( #1140131=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1140131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2019-09-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (238 votes). Check out past polls.

    Notices?