Looks to me (without any prior knowledge of QB's API) that you're going to need a programmer with familiarity with your case. Alternately, you may want to see if there's documentation online or a QB user group to offer info/help. This is pretty specialized... and therefore, not something in the usual ambit of this site -- which is "learning Perl;"
NOT writing code for free.
of course, as an alternate to paying-for-programming, you can search (Big G, for example) for the missing modules and their docs.
If you didn't program your executable by toggling in binary, it wasn't really programming!