- or download this
sub removeRemoteFile {
my $file = shift;
...
}
return FALSE;
}
- or download this
sub removeRemoteFile {
my %args = @_;
...
}
return FALSE;
}
- or download this
sub getFile {
my %args = @_;
...
unlink "$args{LOCAL}/$name" if -f "$args{LOCAL}/$name";
return FALSE;
}
- or download this
for my $file ( ... ) {
if (getFile( ... )) {
...
warn "Couldn't download $args{REMOTE}/$file!\n";
}
}