If you have some experience with Perl you should have no fundamental difficulties. You should be particularly interested in
CGI.pm and in the
qx// operator, a.k.a. 'backticks' (but I don't like them!).
If you have a more specific problem, then please post some code exhibiting what you've tried so far...