Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Seek Critique of SFTP program, format, structure, overall "Perl"ness

by daddyefsacks (Pilgrim)
on Dec 07, 2003 at 04:00 UTC ( [id://312849]=note: print w/replies, xml ) Need Help??

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
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312849]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-19 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found