in reply to use subs

"It didn't work" is pretty nebulous. Was there an error message?

Lacking that, I suspect you may be running afoul of prototypes.