in reply to how do i call a perl script on onClick event of the button
you can go for JavaScript, Ajax or jquery to actually get through your work faster. Check this link out Ajax
Originally posted as a Categorized Answer.