Help for this page

Select Code to Download


  1. or download this
    my $id = '2009-02-12-1234';
    my $filename = "file-$id.dat";
    ...
    
    # it completed ok - upload the completion marker
    $ftp->put ( $dummy_file, "$filename.complete" );
    
  2. or download this
    foreach my $file (@files) {
     # Only look for the 'upload complete' marker files
    ...
     # remove the 'complete' marker file
     unlink($file) || die "can't unlink $file - $!"
    }