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
|