strict would have prevented you from making the error of writing "User@domain.com". What Perl sees is the array @domain, which is empty and thus interpolates into an empty string. You want to use single quotes:
my $adr = 'User@domain.com'; ...
In reply to Re: Parsing an email address
by Corion
in thread Parsing an email address
by gitano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |