example.pl untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl -w
2 #
3 use lib "./lib";
4 use Net::Lite::FTP;
5  
6 my $tlsftp=Net::Lite::FTP->new();
7 $tlsftp->open("ftp.tls.pl","21");
8 $tlsftp->user("user");
9 $tlsftp->pass("password");
10 $tlsftp->list();
11 $tlsftp->cwd("pub");
12 my $files=$tlsftp->list("*.exe");
13 foreach $f (@$files) {
14 print "File: $f\n";
15 };
16 $tlsftp->get("File.txt");# Will overwrite "File.txt" at local directory
17 my $slurped=$tlsftp->slurp("Some.file.txt");# Slurp remote file into scalar.
18 print length($slurped)." bytes slurped\n";