in reply to Re^2: Subroutine argument listin thread Subroutine argument list
It wouldn't have caught this problem for you, but a great general purpose life belt is to always use strictures (use strict; use warnings;).