Since you need just one element of the strings, you don't need to use split. Here is a simple regex solution:
while (<DATA>) { m|(.+?)/| and push @ServerNames, $1; }
Originally posted as a Categorized Answer.
In reply to Re: Splitting a string... Duh?
by Django
in thread Splitting a string... Duh?
by KenShackelford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |