From owner-freebsd-perl@FreeBSD.ORG Sat Apr 8 23:16:05 2006 Return-Path: X-Original-To: freebsd-perl@freebsd.org Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EEB516A402 for ; Sat, 8 Apr 2006 23:16:05 +0000 (UTC) (envelope-from ashok.shrestha@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76E4243D45 for ; Sat, 8 Apr 2006 23:16:04 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so482051nfc for ; Sat, 08 Apr 2006 16:16:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=H8FFYF9CIld+Le2a67aFDYaMiE/1U8L5MPzd2qT9D/aTwmh3JbYs2Nl+F/vCeNAk7ds7C8h2aScgyruRm5YPSIvxvv8Z6vtAf/xGVYCvl8kWzaMwVxvQTE/qdlgcET9DjUnSQzpM8l8pmbQpdnfQugKjTjAae5v42fcmKucR9GY= Received: by 10.49.27.1 with SMTP id e1mr984874nfj; Sat, 08 Apr 2006 16:16:03 -0700 (PDT) Received: by 10.49.93.3 with HTTP; Sat, 8 Apr 2006 16:16:03 -0700 (PDT) Message-ID: <79e2026f0604081616h2dab7552m38b7d53744c474db@mail.gmail.com> Date: Sat, 8 Apr 2006 19:16:03 -0400 From: "Ashok Shrestha" To: freebsd-perl@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Net::FTPSSL error X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 23:16:05 -0000 Hi all, System Info: FreeBSD 6.0-RELEASE bsdpan-Net-FTPSSL-0.04 p5-Net-SSLeay-1.30_1 perl-5.8.7 I'm trying to use Net::FTPSSL to connect to an FTP server via SSL. Here is the script: #!/usr/bin/perl -w use Net::FTPSSL; my $ftps =3D Net::FTPSSL->new('127.0.0.1', 'Encryption' =3D> 'E', 'Debug' =3D> 1, 'Timeout' =3D> 20) or die "Can't open 127.0.0.1"; $ftps->login('username123', 'password123') or die "Can't login: ", $ftps->$last_message(); $ftps->cwd("/working") or die "Can't change directory: ", $ftps->last_mes= sage; $ftps->get("C13.txt") or die "Can't get file: ", $ftps->last_message; $ftps->quit(); Here is my error: ./test_FTPSSL.pl Name "main::last_message" used only once: possible typo at ./test_FTPSSL.pl line 11. >>> USER username123 <<< 331 Please specify the password. >>> PASS password123 Use of uninitialized value in length at (eval 7) line 1. Use of uninitialized value in string eq at blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/S SLeay/ssl_read_all.al) line 1615. Can't read on socket: at ./test_FTPSSL.pl line 11 Are there any relevant conf files I should post? Any ideas how to resolve this issue? -- Ashok Shrestha