in reply to &process or die
Your subroutine should start with
sub process{ my $outfile= shift; [download]