Hi, 2nd question here.... I've got a hash whose keys are arrays & I want to get the values of a certain slice & print them out. So it's more complicated than if the keys were just scalars because I have to check each element of each array but I think the printing-out part isn't so bad. Is grep still the right function though? Like
my @wants = grep { something } keys %haystack; print Dumper{@haystack{@wants}};
or maybe
print "@haystack{@wants}\n";Or would I need to use a for or an if first?
edit: for reference this is a continution of this earlier questionIn reply to question about what to grep(?) by crunch_this!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |