http://www.perlmonks.org?node_id=802088


in reply to Passing data back to calling page

Not without some Javascript trickery on the page, no. HTML pages render when they are loaded, and are static from then on. You'll either need to load the page again, (which to the browser is a new page) or find some AJAX snippet which does what you want.

Basically: HTML is not designed that way. This makes what you want very difficult.