in reply to @ARGV while (<>) hangs
How do you know that it's hanging on the line you have marked? I'd suggest adding some debugging statements to make sure - just printing to a log file or standard error might help.
In Section
Seekers of Perl Wisdom