[Chicago-talk] Net::FTP
Dooley, Michael
Dooley.Michael at con-way.com
Tue Dec 23 09:02:21 CST 2003
is there a way to pull a unique filename from the Net::FTP package?
something like $ftp->unique_name(); unfortunately this works on the server
side not the client side or do I have to do something like below?
my @local_files=glob("*"); ## assume you are in the proper directory
if (grep $ftp_file eq $_, @local_files) {
$ftp->get("$ftp_file",$ftp_file.$randnum);
} else {
$ftp->get("$ftp_file");
}
-----Original Message-----
From: chicago-talk-bounces at mail.pm.org
[mailto:chicago-talk-bounces at mail.pm.org] On Behalf Of Ed Summers
Sent: Thursday, December 18, 2003 2:37 PM
To: Chicago.pm chatter
Subject: Re: [Chicago-talk] Net::FTP
On Thu, Dec 18, 2003 at 12:30:50PM -0800, Dooley, Michael wrote:
> wanted to see if there was a better way to do it with perl.
I've had good success w/ Net::FTP. It's a nice package, and Graham Barr's
packages on CPAN are like gold.
//Ed
_______________________________________________
Chicago-talk mailing list
Chicago-talk at mail.pm.org
http://mail.pm.org/mailman/listinfo/chicago-talk
More information about the Chicago-talk
mailing list