in reply to print if // line number?
My experience has been that the best general reference when you are trying to track down 'magic' behavior is usually perlvar.