Help for this page

Select Code to Download


  1. or download this
    do_this() if (! $interactive);
    and_this() if (! $interactive);
    and_this_too() if(! $interactive);
    
  2. or download this
    if (!$interactive) {
        do_this();
        and_this();
        and_this_too();
    }
    
  3. or download this
    if (
        eval {
            $sftp->put( $file, $target_file, \&callback );
        } ne 0 
    )
    
  4. or download this
    if ($sftp->put()) {
        # success
    ...
    else {
        # fail
    }
    
  5. 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" );
    
  6. or download this
    sub set_up_logger {
        my ($interactive, $batch, $whatever) = @_;
    ...
            ## whatever whatever
        }
    }