There are many ways to solve this. I would probably use system in this case.
In reply to Re: How to run C object code in PERL by gwadej in thread How to run C object code in PERL by masala_curry