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 );