in reply to Parsing an email address
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'; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing an email address
by fisher (Priest) on Oct 03, 2010 at 13:57 UTC | |
|
Re^2: Parsing an email address
by halfcountplus (Hermit) on Oct 03, 2010 at 15:11 UTC |