Created
June 19, 2023 14:03
-
-
Save earnhardt3rd/ef5d5cfc0e7ea620412296e0e7eaadf5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'getopts.pl'; | |
| Getopts('m:d:t'); | |
| my $MODE = uc($opt_m) || ""; | |
| my $DEBUG = $opt_d || 0; | |
| if (defined $opt_t) { my %TEST = &_STRING_2_PATH();} | |
| 1; | |
| sub _STRING_2_PATH { | |
| #::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| #::: CONVERT SPECIAL PATH STRING TO REAL PATH ::: | |
| #::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| my $input = shift; | |
| my $S_SEP = shift || $PIT; | |
| print " _STRING_2_PATH($input)\n" if $DEBUG > 0; | |
| if ($input =~ /,/) { | |
| $S_SEP=$input; | |
| $S_SEP=~ s/.*,//; | |
| $input=~s/,.*//g; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment