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


in reply to run command from CGI program and display output

It is only supposed to return to the same page.

You have to find out that it is returning with data, then do something with that data. Such as  `$query->param('mediaID')`. (please read CGI docs, I'm not sure about the syntax).