my $domain = (split '@', 'dru@perlmonks.org')[-1]; print "Domain is $domain\n"; __output__ Domain is perlmonks.org
_________
broquaint
In reply to Re: Splitting a string, Just want to Keep Half
by broquaint
in thread Splitting a string, Just want to Keep Half
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |