my $user:shared = 'jlahowet'; my $server:shared = 'mistral.unl.edu'; my $lcl:shared = '/home/deadpickle/Desktop/Virtual Cockpit/uavposition'; my $rmt:shared = '/home/jlahowet/UAV/COORDS/uavposition'; #my $thr = threads->new(\&sftp, @setup); my $thr = threads->new(\&sftp); #then in your thread-code use the shared vars instead of #using the passed in @setup array