Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
but returns nothing@DOMAINS = qw( a.com b.com c.com); foreach $DOMAIN (@DOMAINS) { my ($pre, $suf) = split ("." , $DOMAIN); print $pre; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: i must have forgotten how split works...
by kvale (Monsignor) on Mar 09, 2004 at 17:53 UTC | |
|
Re: i must have forgotten how split works...
by ambrus (Abbot) on Mar 09, 2004 at 17:51 UTC | |
|
Re: i must have forgotten how split works...
by Juerd (Abbot) on Mar 09, 2004 at 18:36 UTC | |
|
Re: i must have forgotten how split works...
by gridlock (Novice) on Mar 09, 2004 at 22:01 UTC | |
by bart (Canon) on Mar 10, 2004 at 09:09 UTC |