in reply to Req Expresson on my output
Note: I'm grouping using (?: ) rather than plain ( ) because its more efficient when you don't want the contents of the group.foreach (keys %data) { next if ($_ =~ m!(?:^aaa$|/|^\(|and)! ); print "$_\n"; }
PS: are you sure you don't want $data{$_} instead of $_ in either the compare or the print?
PPS: If you want to use $data{$_} in both the compare and the print then you should use values %data instead.
Dingus
|
---|