Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Loop function in Javascript fails when combined with perl arrayby jeffa (Bishop) |
on Aug 26, 2015 at 22:50 UTC ( [id://1140131]=note: print w/replies, xml ) | Need Help?? |
"Now, if there are 100 headers, i would have to assign variables 100 times separately. so its better to make it dynamic. " I recommend a hybrid solution that dynamically creates static Javascript:
Yields:
UPDATE: Better yet would be to shove them all into a Javascript array:
jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|