Why is everyone giving me a negative reputation, on this write up? This question or write up is all about Perl not JavaScript. This one function that i wrote in JS is the only function in my script that contains JS. Let me re-phrase the question. I have a function in JS within my Perl script that doesn't work. Is there a way that i can do this in Perl? Can someone reply back and tell me why i got no response, and instead i got some negative reputations.