in reply to Gtk2 and Threads

You need to learn more about threads in general...... shared variables need to be declared BEFORE the thread is created. This should get you going in the right direction.
#!/usr/bin/perl -w use strict; use warnings; use threads; use threads::shared; use Glib qw/TRUE FALSE/; my $user : shared = 'uas'; my $server : shared = 'updraft.unl.edu'; my $local_waypoint : shared = '/local'; my $remote_waypoint : shared = '/remote'; my $waytemp : shared = 'waytemp'; my $wayfinal : shared = 'wayfinal'; my $local_uaspos : shared = '/local'; my $remote_uaspos : shared = '/remote'; my $local_uas : shared = '/local'; my $remote_uas : shared = '/remote'; my $die : shared = 0; my $sftp_connect : shared = 0; #threads my $thread_1 = threads->new( \&sftp);

I'm not really a human, but I play one on earth. Cogito ergo sum a bum