I interpreted what NetWallah wrote as assuming the OP might want to do something more than what was posted
Me too. Why skip entries with no emails if you're not going to use the emails?
I could see
although it might be clearer to domy @emails = map { $_->{email} eq '' ? () : $_->{email} } @$data;
my @emails = grep $_, map $_->{email}, @$data;
In reply to Re^6: Get out of "For Loop"!
by ikegami
in thread Get out of "For Loop"!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |