in reply to Re^5: Get out of "For Loop"!
in thread Get out of "For Loop"!
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;
|
|---|