With a simple hash, to grep the keys:
my @results = grep /taco/, keys %hash;To grep the values:
my @results = grep /taco/, values %hash;To get the keys whose values match a regex:
my @results = map {$hash{$_} =~ /taco/ ? $_: ()} keys %hash;In reply to Re^3: Need something like a SQL query for JSON data structures (JSON::XS)
by Laurent_R
in thread Need something like a SQL query for JSON data structures (JSON::XS)
by walkingthecow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |