File: ftps-direct.pl

package info (click to toggle)
libnet-sslglue-perl 1.058-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 212 kB
  • sloc: perl: 825; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;
use Net::SSLGlue::FTP;

my $ftp = Net::FTP->new( 'ftp.example.com', 
    SSL => 1, 
    SSL_ca_path => '/etc/ssl/certs',
    Passive => 1,
    Debug => 1,
);
$ftp->login('foo','bar');
print $ftp->ls;