- or download this
do_this() if (! $interactive);
and_this() if (! $interactive);
and_this_too() if(! $interactive);
- or download this
if (!$interactive) {
do_this();
and_this();
and_this_too();
}
- or download this
if (
eval {
$sftp->put( $file, $target_file, \&callback );
} ne 0
)
- or download this
if ($sftp->put()) {
# success
...
else {
# fail
}
- or download this
writeLog("* * * ABNORMAL COMPLETION * * * Error: $!. Unable to open
+file $files_to_sftp" );
print( STDOUT "* * * ABNORMAL COMPLETION * * * Error: $!. Unable to
+open file $files_to_sftp\n" );
- or download this
sub set_up_logger {
my ($interactive, $batch, $whatever) = @_;
...
## whatever whatever
}
}