You almost certainly want to write your code to use the SMS::Send API, and not just because I wrote it.
in reply to How to send text msg with perl??
There's a dozen backends for SMS::Send, and more keep appearing as the authors of other SMS sending modules write SMS::Send drivers.
The main reason you want to do it is that you will almost certainly need to change your SMS sending channel a couple of times, and SMS::Send makes it very very easy to change the SMS delivery mechanism without having to change any code.
Also, there's likely to be more SMS::Send tools appearing down the line, stuff like command line sending and a GUI SMS thingy.