in reply to Req Expresson on my output

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