Skip to content

Instantly share code, notes, and snippets.

@earnhardt3rd
Created June 19, 2023 13:56
Show Gist options
  • Select an option

  • Save earnhardt3rd/71150c88a090f3e46eeeadf00fa2b093 to your computer and use it in GitHub Desktop.

Select an option

Save earnhardt3rd/71150c88a090f3e46eeeadf00fa2b093 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 = &fromHASH_SINGLE();}
1;
sub fromHASH_SINGLE {
print " =============== FROM HASH ===============\n" if $DEBUG > 0;
my %H = @_;
my %RTN;
my @HKEYS;
foreach my $hk(sort keys %H) {
next if ($hk =~ /^${HAG}/);
print " DEBUG_fromHASH:KEY=$hk\n" if $DEBUG > 0;
push(@HKEYS,$hk);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment