Perl: ref LVALUE

While I’m working on Sabermetrics.pm (which is for basebal statistics. It’ll be released soon) these days, I encountered some problem and refered to ‘perldoc -f ref’. It mentions about returning LVALUE’ without any other information.

And I just find this sample program:

http://www.farid-hajji.net/books/de/Hajji_Farid/pbv2/pw/ref-lvalue.pl.html

Quite ugly. It seems to work on built-in function. I can’t figure out how to use it with my own function :(