It doesn't work on unblessed references, which is what the auto-deref feature does work on. (I thought you were referring to autobox.)
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.