Skip to content

Instantly share code, notes, and snippets.

@earnhardt3rd
Created June 19, 2023 14:04
Show Gist options
  • Save earnhardt3rd/16683cf2086f000b2775cffb91d32de8 to your computer and use it in GitHub Desktop.
Save earnhardt3rd/16683cf2086f000b2775cffb91d32de8 to your computer and use it in GitHub Desktop.
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_UNPAK();}
1;
sub _UNPAK {
my $INPUT = shift || "";
my $tTag="";
my $tFile="";
my $gTag="";
my $gFile="";
print " _UNPAK($INPUT)\n";
print " cwd:" . cwd . "\n";
my $pCwd = cwd;
if (! -f $INPUT) {
chdir $PAK;
$INPUT = &selectFILE("$INPUT");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment