in reply to converting from string to SCALAR when using strict "refs"

Are you really, really sure that the code in question is using the variable $0? Otherwise, I would assume a plain programming error, where a string was stored in a variable that is then used as a reference, something that strict 'refs' catches, for a reason.