hmmm... a test gave me this:

Code:
$='test'
? $*20

^ error in expression

Code:
$='test'
? 20*$

^ works (result = 0)

are u sure you're doing the 2nd thing?

Like joeel says it's easier if you post the whole script, but that would be not very nice during the private coding fase...