How to pass a variable to a function?

What's wrong with passing it as an argument? (I'm not keen on global scope - too much like BASIC. Actually, I'm not keen on the String class.)