You're sooo close: (undef, my $domain) = split /\@/, $email; or else: my $domain = (split /\@/, $email)[1];
Update: Pay attention to Limbic~Region and hardburn, email addresses are more than your code or mine admits. I only corrected your syntax.
After Compline,
Zaxo
In reply to Re: Splitting a string, Just want to Keep Half
by Zaxo
in thread Splitting a string, Just want to Keep Half
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |