my $memType = [];
my $portOp = [];
my $fo = "aster.out.DRAMA.READ.gz";
if($fo =~/aster.out\.(.*)\.(.*)\.gz/){
push (@{$memType},$1);
push (@{$portOp},$2);
}
print Dumper @{$memType};
foreach my $mem (keys %{$portCapability->{@{$memType}}}){
//How to use the array ref memType inside a hash//
print "entered here\n";
//cannot post the rest of the code for obvious reasons//
}
我无法进入 foreach 循环。任何人都可以帮我解决它吗?抱歉,这不是完整的代码。请帮我。