in reply to Using grep to extract domain from email

I think you wanted map there:
my @domains = map { /.+@(.+)/ } @emails;

Replies are listed 'Best First'.
Re^2: Using grep to extract domain from email
by mhearse (Chaplain) on Jan 15, 2009 at 21:08 UTC
    Thanks!