It's possible to further simplify this (slightly) by removing the intermediate array variable:
my ($add_in) = grep { $_->{status} eq 'houses' } @$data;
(And I think it should be noted that the // defined-or operator was added with Perl version 5.10.)
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Add new data to array
by AnomalousMonk
in thread Add new data to array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |