in reply to passing a scalar to a function

mycheck(); or perhaps I've not understand your question?

Revised Ok, I didn't understand the question :)

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.