Connect to FTP server in Perl example

#!/usr/bin/perl
 
use strict;
use warnings;
use Net::FTP;
 
my $ftp = Net::FTP->new($host,Timeout=>1) or die;
$ftp->login('anonymous', 'test@test.com');
 
$ftp->cwd('/some_dir');
 
my @files = $ftp->dir;
 
$ftp->quit;
 
 

Download this snippet

Twitter Twitter

Tags

Perl FTP

3 Comments to “ Connect to FTP server in Perl example”

  1. Anonymous  on Sep 04, 2009

    vWLh0b <a href="http://ysgzrtmcumxo.com/">ysgzrtmcumxo</a>, [url=http://lhzgywrqzgtw.com/]lhzgywrqzgtw[/url], [link=http://pfsxpytevuxh.com/]pfsxpytevuxh[/link], http://ymuceiobreuj.com/

  2. Anonymous  on Sep 25, 2009

    1cHJT9 <a href="http://bkhwcmbhuact.com/">bkhwcmbhuact</a>, [url=http://dpnptoawjsew.com/]dpnptoawjsew[/url], [link=http://enyyzdpzrwks.com/]enyyzdpzrwks[/link], http://kbouhzcsvner.com/

  3. Anonymous  on Mar 15, 2010

    BKCnMj <a href="http://dqygdotljlii.com/">dqygdotljlii</a>, [url=http://ijwufytkdpsp.com/]ijwufytkdpsp[/url], [link=http://elbiyljsawhc.com/]elbiyljsawhc[/link], http://risuiguedxhn.com/

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>