@DOMAINS = qw( a.com b.com c.com); foreach $DOMAIN (@DOMAINS) { my ($pre, $suf) = split (/\./ , $DOMAIN); print $pre; }
-Mark
In reply to Re: i must have forgotten how split works...
by kvale
in thread i must have forgotten how split works...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |