in reply to using Net::FTP to get a file without a full name

You have to glob the wildcard explicitly at the local site. If I understand your question correctly, you want

for my $file ( glob "$myfile*" ) { $ftp->put( $file ) or die "PUT $file failed: $!\n"; }

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^2: using Net::FTP to get a file without a full name
by tariqahsan (Beadle) on Aug 24, 2004 at 15:26 UTC
    Hi,

    Sorry, my mistake. I meant to 'GET' file(s) from a remote
    server instead

    Thanks!

      Then you can list the files on the remote site and filter the list with whatever pattern you want to use.
      my @list = $ftp->ls(); my @files = grep { /some pattern.*/ } @list; foreach my $file (@files) { $ftp->get($file); }