perl subroutine reference with arguments