Created
June 19, 2023 13:56
-
-
Save earnhardt3rd/bdb238c7df5de9a1d9ed31406be09c9f 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 = &ENV_2_HASH();} | |
| 1; | |
| sub ENV_2_HASH { | |
| my $env_tag = shift || "PATH"; | |
| my $env_sep = shift || ""; | |
| my $env_trn = shift || ""; | |
| if ($env_sep eq "") { | |
| if (lc($^O) =~ /win/) { | |
| $env_sep=";" | |
| } else { | |
| $env_sep=":"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment