Pass ref to ARGV to subroutine