New here, maybe more of an explaination of prototypes? Tried to use your routine of (\%) which had syntax error at the line (also created syntax errors along every @_ line called in the library I'm writting.
Looked at prototypes (first time I've seen such) at Prototypes.
Hasn't made since yet, appears certain functions being called. Does look like a neat solution if it works for me.