in reply to need to ftp file

I don't believe you can glob a file using Net::FTP, however you can probably use Perl's glob to get the filename and pass it during your ftp put.
#!/usr/bin/perl -w use strict; use Net::FTP; my $user = 'XXXX'; my $password = 'XXXXX'; my $ftp = Net::FTP->new('your_ftp_box'); $ftp->login($user, $password); my $file = glob 'whatever*you*need'; $ftp->put($file, 'whatever_name_you_want'); $ftp->quit;
You should also read perldoc Net::FTP to be certain you know what's going on here. Also this example does not do any error checking you can figure that out by reading perldoc Net::FTP, but this will give you an idea.

Good luck

Sweetblood

Replies are listed 'Best First'.
Re^2: need to ftp file
by mpeters (Chaplain) on Jan 19, 2005 at 19:17 UTC
    I don't see glob could help. glob will work on his local filesystem and anything that ended up in $file would have no relavance to the non-local windows box.