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