in reply to Get out of "For Loop"!

I'm assuming you want to do something useful with the list of cases where there is "No email address". If so, 'map' is your friend:
my @names_with_no_email = map {$_->{email} eq '' ? $_->{name}:()} @$ +data;

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

Replies are listed 'Best First'.
Re^2: Get out of "For Loop"!
by chromatic (Archbishop) on Oct 12, 2010 at 21:28 UTC
      chromatic,
      Why map and not grep?

      Perhaps I am missing something, but grep doesn't look reasonable here. This is both filtering and transforming which makes me think map. In addition to filtering hash references based on the 'email' key, it returning the value of the 'name' key. I can't think of a way to do that with grep that is clear but please feel free to elucidate me?

      Cheers - L~R

        There is no translation in the OP, and I suspect it's undesirable to drop the email addresses.

        I misread NetWallah's code in light of the OP's code.