in reply to Re^4: 500 Not a SCALAR reference
in thread 500 Not a SCALAR reference

That explains a fair bit that does.