foreach (keys %data) { next if (/^aaa$/or /^\[/ or /and/i or /\//); print "$_\n"; }