subroutine call on a button or img click??(perl)

  • akaash
  • Beginner
  • Beginner
  • akaash
  • Posts: 62
  • Loc: Gujurat,India

Post 3+ Months Ago

how can i call a subroutine when a button is clicked or an image is clicked.
I want to pass some parameters to the called subroutine.

And how can i pass object to the subroutine?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Are you talking from a web page ? or from a gui like tk?
  • akaash
  • Beginner
  • Beginner
  • akaash
  • Posts: 62
  • Loc: Gujurat,India

Post 3+ Months Ago

web form
  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Then you are not talking about calling a subroutine, you are talking about calling a script.

to pass information to the script you need to add a ? abd the information you want to send

i.e.
<a href="myscript.pl?param1=testing" >click here</a>

this will then call your perl script and pass it the parameter param1=testing

you can then either extract that information yourself or use CGI to do it for you

I'll need a lot more info to be more specific

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 66 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.