my $list_request = HTTP::Request->new(GET => $source_dir); my $agent = LWP::UserAgent->new; $agent->protocols_allowed(['ftp', 'http']); #$agent->proxy('ftp' => 'http://www.nunya.biz:8080'); my $list_response = $agent->request($list_request); my @lines = grep (s!^