Extending the remote api

I’ve been having a look at the remote api with a view to extending it.

I see that remote.cgi simply acts as a wrapper for a perl script, passing the given url params to the command line. I’ve managed to bodge together a little script to tell me the bandwidth usage of a server, and it seems to work well.

I’m not at all perl literate, so i’m learning as i go, by copying some of the existing code and making it do what i want.

Wondered if anyones got any advice on extending the remote api, are there any obvious problems with writing my perl scripts?