Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by fletcher_the_dog (Friar)
on Dec 11, 2003 at 03:31 UTC ( #313955=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # predeclare subroutines so subs; can be called before being declared
    # and without ()
    
  2. or download this
    # one line to make sure there is one and only one "/"
    $target_dir=~s<^/*></>;
    
  3. or download this
    #get first character in target_dir
     my $first_char = substr( $target_dir, 0, 1 );
    ...
     }
    
  4. or download this
    #verify that file exists
     checkFileExists() if ( ! $interactive );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2022-10-06 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?